-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #74892 - Fixed URL rewriting for urls started with #
(cherry picked from commit 6c32d27) This should have already been merged via 9cd82df, but that merge went wrong.
- Loading branch information
1 parent
0d87a0b
commit 68296c4
Showing
3 changed files
with
83 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters