ID: 26068 Updated by: [EMAIL PROTECTED] Reported By: sanondysie at tc17 dot com -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: Windows 98 PHP Version: 4.3.4RC3 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. PHP does not modify the HTTP_REFERER field, what the browser sends is what you get. If you don't it means the webserver had applied some filtering. Previous Comments: ------------------------------------------------------------------------ [2003-11-01 12:50:21] sanondysie at tc17 dot com Description: ------------ This appears to be Windows 98 (all Win32??) only; it works on Linux. The problem is that the referrer uri is missing any arguments that might have been appended. For the attached sample, you need to Submit at least twice to see the problem. This was tested with an Xitami HTTP server. Reproduce code: --------------- <html> <head/> <body> <p> Referrer:<br/> <table> <tr> <td> PHP: </td> <td> <?PHP print $_SERVER ["HTTP_REFERER"]; ?> </td> </tr> <tr> <td> Javascript: </td> <td> <script>document.write (document.referrer);</script> </td> </tr> </table> </p> <form action= "<?php print $_SERVER ["SCRIPT_NAME"]; ?>" method= "get"> <input type= "hidden" name= "param" value= "value"> <input type= "submit"> </form> </body> </html> Expected result: ---------------- Both referrers should be identical. You need to click Submit twice to get a referrer supplying arguments. Actual result: -------------- PHP will show arguments missing. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26068&edit=1