From:             [EMAIL PROTECTED]
Operating system: Win 2000
PHP version:      4.0.4pl1
PHP Bug Type:     HTTP related
Bug description:  URL with anchor reference parsing error

This bug affects how variables are parsed from the URL, in instances when the header() 
function is used to forward the browser. Eg. if the following code was used in a 

header("Location: index.php?variable=blah")

Then index.php would be parsed and PHP would assign $variable == blah. However, if the 
user adds a HTML anchor reference onto the end, eg:

header("Location: index.php?variable=blah#1")

Then the web browser would still parse it fine, but PHP will assign $variable == 
blah#1. If the user refreshes the browser window (eg., the location header isn't being 
used to laod the script) then it works fine, so this bug is limtied to the header() 
function only.


The script writer can add an & before the # character in the URL, eg:


Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to