Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Using http_build_query for application/x-www-form-urlencoded #34

Merged
merged 2 commits into from
Jan 18, 2017

Conversation

ameoba32
Copy link
Contributor

@ameoba32 ameoba32 commented Dec 8, 2015

By standard "&" character is used for application/x-www-form-urlencoded submissions. If separator is set to different value via ini_set('arg_separator.output', 'some other'); it will break http client with wrong request.

I suggest to hardcode "&" there

[FIX] Do not break http standard if wrong separator is set
@redheadedstep
Copy link

Update on when this will be merged into master @weierophinney ? Anytime I run composer update, I have to manually update this file.

ezimuel added a commit to ezimuel/zend-http that referenced this pull request Aug 4, 2016
@ezimuel
Copy link
Contributor

ezimuel commented Aug 4, 2016

@ameoba32 please merge ameoba32#3 that contains the unit test for your PR.

@ezimuel ezimuel self-assigned this Aug 4, 2016
@ezimuel ezimuel merged commit ca752d7 into zendframework:master Jan 18, 2017
@ezimuel
Copy link
Contributor

ezimuel commented Jan 18, 2017

I added the unit test during the merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants