From: nisanov at bigpond dot net dot au Operating system: Windows 2000 PHP version: 4.3.1 PHP Bug Type: HTTP related Bug description: Lost anchor in header redirect
Description: ------------ I'm not sure if this is the same but that is talked about in Bug #6178: URI Re-writing failure but there is comments of this being fixed in php v4.0.2 and I am using php v4.3.1 I have a page that containts a form with enctype="multipart/form-data" - used to upload an image The form data is sent to a 2nd page that writes the image data into a database. In the 2nd page I also have a header function that contains an anchor reference (#MyAnchor); When the header source page loads the anchor disappears from the url. This only happens when I post from a form that has enctype=multipart/form-data. I cannot be certain this is the cause but I have some suspicions that it is. Any ideas? Reproduce code: --------------- header("Location: search.php?SID=".$_GET["SID"]."&msg=56&restore=true#UserDetails"); exit; Expected result: ---------------- The url address in the browser to be: http://mysite/search.php?SID=j54b23l45b2lk45b24j5b2asdf&msg56&restore=true#UserDetails Actual result: -------------- The url address in the browser is: http://mysite/search.php?SID=j54b23l45b2lk45b24j5b2asdf&msg56&restore=true -- Edit bug report at http://bugs.php.net/?id=24554&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24554&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24554&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24554&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24554&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24554&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24554&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24554&r=support Expected behavior: http://bugs.php.net/fix.php?id=24554&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24554&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24554&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24554&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24554&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24554&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24554&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24554&r=gnused