libevent/libevent — pull request #15 by VittGam (2012-08-02 23:32:28+00:00)
Title: Fixed evhttp_parse_query to not fail in particular cases

Hi,

I've made those changes to the evhttp_parse_query_impl function to avoid an error on those query strings:

- test=123&test2 (test2 is now saved as "")
- test=123&&test2=1 (it no longer crashes on this)
- test=123&=456&test2=1 (it no longer crashes on this; the no-name entry is discarded)

I also changed this to make the function behave as PHP and others do:

- test=123&test=456 (test was 123, now is 456)