#23829 [NEW]: header ("Location: test.php?this=5&that=6#goToThisBookmark"); err with bookmark

From: Date: Tue, 27 May 2003 13:37:30 +0000
Subject: #23829 [NEW]: header ("Location: test.php?this=5&that=6#goToThisBookmark"); err with bookmark
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40495@lists.php.net to get a copy of this message
From: MDonatas at centras dot lt Operating system: Windows 2000 Server PHP version: 4.3.1 PHP Bug Type: *URL Functions Bug description: header ("Location: test.php?this=5&that=6#goToThisBookmark"); err with bookmark I'll make it clear with 3 small webpages in my example on how to reproduce this bug. *******test1.php******** <html> <head> <title></title> </head> <body> <a href="test2.php">Go to test2.php</a> </body> </html> ************************ *******test2.php******** <?php header ("Location: test3.php?this=5&that=6#MyBookmark"); ?> ************************ *******test3.php******** <html> <head> <title></title> </head> <body> <?php var_dump ($HTTP_GET_VARS); ?> </body> </html> ************************ Now, first part of the test: Run test2.php so you would get redirected to test3.php OUTPUT in test3.php :: array(2) { ["this"]=> string(1) "5" ["that"]=> string(1) "6" } Everything is fine here, now second part of the test. Run test1.php and click on the link to go to test2.php and instantly get redirected to test3.php OUTPUT in test3.php :: array(2) { ["this"]=> string(1) "5" ["that"]=> string(12) "6#MyBookmark" } See, there is bookmark thingy attached at the end as if it is a part of my second variable sent over GET vie the link. -- Edit bug report at http://bugs.php.net/?id=23829&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23829&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23829&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23829&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23829&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23829&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23829&r=support Expected behavior: http://bugs.php.net/fix.php?id=23829&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23829&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23829&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23829&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23829&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23829&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23829&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23829&r=gnused

« previous php.bugs (#40495) next »