Page MenuHomePhabricator

Produce correct query strings from PhutilUri regardless of ini settings
ClosedPublic

Authored by richardvanvelzen on Oct 14 2015, 5:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 3:45 PM
Unknown Object (File)
Wed, Apr 10, 3:58 PM
Unknown Object (File)
Mon, Apr 8, 7:09 AM
Unknown Object (File)
Sat, Apr 6, 2:18 PM
Unknown Object (File)
Tue, Mar 26, 2:27 PM
Unknown Object (File)
Mar 4 2024, 6:36 PM
Unknown Object (File)
Mar 4 2024, 4:40 PM
Unknown Object (File)
Mar 4 2024, 4:40 PM
Subscribers

Details

Summary

http_build_query will use the separator set in arg_separator.output. When this is set to & (which happens in various environments) this causes query parameters to have the & doubly encoded.

Test Plan
-> php -r 'ini_set("arg_separator.output", "&"); echo http_build_query([1, 2, 3], "", "&");'
0=1&1=2&2=3

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

richardvanvelzen retitled this revision from to Product correct query strings from PhutilUri regardless of ini settings.
richardvanvelzen updated this object.
richardvanvelzen edited the test plan for this revision. (Show Details)
richardvanvelzen added a reviewer: epriestley.
richardvanvelzen set the repository for this revision to rPHU libphutil.
richardvanvelzen retitled this revision from Product correct query strings from PhutilUri regardless of ini settings to Produce correct query strings from PhutilUri regardless of ini settings.Oct 14 2015, 5:24 PM
richardvanvelzen edited edge metadata.
This revision is now accepted and ready to land.Oct 14 2015, 5:25 PM
This revision was automatically updated to reflect the committed changes.