]> granicus.if.org Git - cgit/commitdiff
Handle '+' in querystring
authorLars Hjemli <hjemli@gmail.com>
Thu, 28 Dec 2006 01:51:46 +0000 (02:51 +0100)
committerLars Hjemli <hjemli@gmail.com>
Thu, 28 Dec 2006 01:51:46 +0000 (02:51 +0100)
Translate '+' to ' ' in querystring parser (still doesn't handle %xx)

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
parsing.c

index 4d5cc743da1ec9c7143c825330e3bf0bfd4f8d45..1b22fcf5d059dfd5715e4b5acce911b773115bd2 100644 (file)
--- a/parsing.c
+++ b/parsing.c
@@ -92,6 +92,8 @@ int cgit_parse_query(char *txt, configfn fn)
                if (c=='=') {
                        *t = '\0';
                        value = t+1;
+               } else if (c=='+') {
+                       *t = ' ';
                } else if (c=='&') {
                        *t = '\0';
                        (*fn)(txt, value);