the repository which powers this website
Handle '+' in querystring
Translate '+' to ' ' in querystring parser (still doesn't handle %xx) Signed-off-by: Lars Hjemli <[email protected]>
Lars Hjemli 2006-12-28
parent 732d68d · commit 05b1319
-rw-r--r--parsing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parsing.c b/parsing.c
index 4d5cc743..1b22fcf5 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);