diff options
author | Andrew Nester <andrew.nester.dev@gmail.com> | 2017-07-11 21:50:38 +0300 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-07-18 21:20:03 +0200 |
commit | 6c32d271d238a18cfc19d98877cdead1ab38f417 (patch) | |
tree | c9fa9815c7703a88b3145321c41f1033f2abb301 /ext/session | |
parent | f4323248ec38c887baf46281a4d61985d0474f4c (diff) | |
download | php-git-6c32d271d238a18cfc19d98877cdead1ab38f417.tar.gz |
Fixed #74892 - Fixed URL rewriting for urls started with #
Diffstat (limited to 'ext/session')
-rw-r--r-- | ext/session/tests/bug74892.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/session/tests/bug74892.phpt b/ext/session/tests/bug74892.phpt new file mode 100644 index 0000000000..a4c977828a --- /dev/null +++ b/ext/session/tests/bug74892.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #74892 Url Rewriting (trans_sid) not working on urls that start with # +--FILE-- +<?php +ini_set('session.use_cookies', '0'); +ini_set('session.use_only_cookies',0); +ini_set('session.use_trans_sid',1); +ini_set('session.trans_sid_hosts','php.net'); +session_id('sessionidhere'); +session_start(); + +?> +<p><a href="index.php">Click This Anchor Tag!</a></p> +<p><a href="index.php#place">External link with anchor</a></p> +<p><a href="http://php.net#foo">External link with anchor 2</a></p> +<p><a href="#place">Internal link</a></p> +===DONE=== +--EXPECT-- +<p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> +<p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p> +<p><a href="http://php.net?PHPSESSID=sessionidhere#foo">External link with anchor 2</a></p> +<p><a href="#place">Internal link</a></p> +===DONE=== |