Re: [Libevent-users] bug + question

2011-01-06 Thread Mihai Draghicioiu
Thanks Nick! Well, with PHP, you can have parameters of these forms: foo=bar&baz=quux foo=bar&baz= (empty baz) foo=bar&baz (empty baz) they all work, but in the last two cases, the value of baz is an empty string. And I was just thinking the parser can be a bit loose, without this generating any

Re: [Libevent-users] bug + question

2011-01-05 Thread Jeroen Habraken
Hi, On 5 January 2011 20:16, Nick Mathewson wrote: > On Thu, Dec 30, 2010 at 8:21 PM, Mihai Draghicioiu > wrote: >> Hi all. I've found that evhttp_parse_query_str only works if the query >> string is of the form foo=bar&baz=quux. If we have a query string of >> the form foo=bar&baz (no value for

Re: [Libevent-users] bug + question

2011-01-05 Thread Nick Mathewson
On Thu, Dec 30, 2010 at 8:21 PM, Mihai Draghicioiu wrote: > Hi all. I've found that evhttp_parse_query_str only works if the query > string is of the form foo=bar&baz=quux. If we have a query string of > the form foo=bar&baz (no value for the last key), it fails. I consider > this a bug, because y

[Libevent-users] bug + question

2010-12-30 Thread Mihai Draghicioiu
Hi all. I've found that evhttp_parse_query_str only works if the query string is of the form foo=bar&baz=quux. If we have a query string of the form foo=bar&baz (no value for the last key), it fails. I consider this a bug, because you have all the other valid parameters in there, and it can just se