|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [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-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC