|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13277 & in query_string are not handled
Submitted: 2001-09-12 20:00 UTC Modified: 2001-09-14 18:14 UTC
From: laurent at bearteam dot org Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.0.6 OS: Debian GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
21 - 19 = ?
Subscribe to this entry?

 [2001-09-12 20:00 UTC] laurent at bearteam dot org
The query_string "a=1&b=2" and "a=1&b=2" should be equivalent, but they are not with php. A workaround is to use arg_separator.input = ";&".


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-14 18:14 UTC]
This is wrong.

& is the way to specify & in HTML.

For example:

<a href="script.php?var1=value&amp;var2=othervalue">Click here to continue</a>

But the browser should (according to HTML-specs) request this uri:
from internet (i.e., your script)

If the browser doesn't do that, it's a browser bug.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 17:01:28 2024 UTC