#26068 [Bgs->Opn]: referrer uri missing arguments
| From: | sanondysie at tc17 dot com | Date: | Sat, 01 Nov 2003 22:31:18 +0000 |
| Subject: | #26068 [Bgs->Opn]: referrer uri missing arguments | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49824@lists.php.net to get a copy of this message | ||
ID: 26068
User updated by: sanondysie at tc17 dot com
Reported By: sanondysie at tc17 dot com
-Status: Bogus
+Status: Open
Bug Type: HTTP related
Operating System: Windows 98
PHP Version: 4.3.4RC3
New Comment:
Sorry but that is exactly and precisely why the Javascript is there in
the example that I expended the time and energy to produce. If the http
server had stripped argument then Javascript would __NOT__ have been
able to see it... but it __DOES__, in fact, see the argument;
therefore, the http server is, indeed delivering all the goods. PHP
otoh does not report the argument, once again, presumably only on
Windows platform(s).
Previous Comments:
------------------------------------------------------------------------
[2003-11-01 15:22:50] iliaa@php.net
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.
------------------------------------------------------------------------
[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