|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2019 The PHP Group
All rights reserved.
Last updated: Mon Dec 16 14:01:25 2019 UTC