From 05b13194b4b40a2614692125d5037ef20c5fb20e Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Thu, 28 Dec 2006 02:51:46 +0100 Subject: Handle '+' in querystring Translate '+' to ' ' in querystring parser (still doesn't handle %xx) Signed-off-by: Lars Hjemli --- parsing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parsing.c') diff --git a/parsing.c b/parsing.c index 4d5cc74..1b22fcf 100644 --- 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); -- cgit