Re: [Libevent-users] evhttp_encode_uri() fails to escape certain characters

2010-10-07 Thread Clint Webb
On Thu, Oct 7, 2010 at 1:12 AM, Nick Mathewson wrote: > On Fri, Sep 24, 2010 at 4:21 PM, Bas Verhoeven wrote: > But what if somebody is saying something iffy like >    asprintf(&query1, "q1=%s", v1); >    asprintf(&query2, "q2=%s", v2); >    encoded1 = evhttp_encode_uri(query1); >    encoded2 =

Re: [Libevent-users] evhttp_encode_uri() fails to escape certain characters

2010-10-06 Thread Nick Mathewson
On Fri, Sep 24, 2010 at 4:21 PM, Bas Verhoeven wrote: > Hello, > > While using 'evhttp_encode_uri()' to encode GET & POST fields (I hope this > is the right function to use) I noticed that a lot of characters are not > being escaped in the way I would expect them to be escaped. Hi, all! I'm tryi

[Libevent-users] evhttp_encode_uri() fails to escape certain characters

2010-09-24 Thread Bas Verhoeven
Hello, While using 'evhttp_encode_uri()' to encode GET & POST fields (I hope this is the right function to use) I noticed that a lot of characters are not being escaped in the way I would expect them to be escaped. For example: I would have expected it to encode '+' to '%2B' because it will