guzzle/guzzle — pull request #131 by tomat (2012-09-04 11:42:39+00:00)
Title: URL gets mangled due to QueryString class behaviour

Trying to do a GET request to an URL like:

http://test.com/?query=http://foo.bar/?foo=bar&foo=bar

Results in a request to this URL:

http://test.com/?query=http%3A%2F%2Ffoo.bar%2F%3Ffoo&foo=bar

But I would expect it to request this URL:

http://test.com/?query=http%3A%2F%2Ffoo.bar%2F%3Ffoo%3Dbar&foo=bar

Note the missing "%3Dbar" ("=bar")

To "fix" this might go against the applicable RFC, but in real-life scenarios this is expected behaviour (i.e. third-party click tags sending full redirect URL:s as query string parameters).