|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68729 http_build_query() should use RFC3986 escape as the default
Submitted: 2015-01-03 01:52 UTC Modified: 2015-02-23 11:49 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Assigned: yohgaki (profile)
Status: Assigned Package: *URL Functions
PHP Version: Irrelevant OS: ANY
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 - 13 = ?
Subscribe to this entry?

 [2015-01-03 01:52 UTC]
It uses RFC 1738 (escape ' ' as +). It should use RFC 3986. i.e. escape ' ' as %20.
Since urldecode() decodes %20 to ' '. There is no BC issue.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-15 11:28 UTC] ppasindud at gmail dot com
Then wouldn't it be same as rawurlencode, I am assuming that there is a reason to have two of those with slight differences.
 [2015-02-23 11:49 UTC]
-Assigned To: +Assigned To: yohgaki
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 05:01:26 2019 UTC