cgit

commit 05b13194b4b40a2614692125d5037ef20c5fb20e

Author: Lars Hjemli <hjemli@gmail.com>

Handle '+' in querystring

Translate '+' to ' ' in querystring parser (still doesn't handle %xx)

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

 parsing.c | 2 ++


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