]> granicus.if.org Git - libevent/commitdiff
when parsing query parameters, we automatically unquote them
authorNiels Provos <provos@gmail.com>
Tue, 13 Feb 2007 06:14:42 +0000 (06:14 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 13 Feb 2007 06:14:42 +0000 (06:14 +0000)
svn:r325

http.c

diff --git a/http.c b/http.c
index 0d4b44d56fc32c02c186718e6beb187038046163..20771df275845c3c14ee6ecb0442485b22acc4f3 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1755,8 +1755,10 @@ evhttp_parse_query(const char *uri, struct evkeyvalq *headers)
                if (value == NULL)
                        goto error;
 
+               value = evhttp_decode_uri(value);
                event_debug(("Query Param: %s -> %s\n", key, value));
                evhttp_add_header(headers, key, value);
+               free(value);
        }
 
  error: