summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--parsing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parsing.c b/parsing.c
index 4d5cc74..1b22fcf 100644
--- a/parsing.c
+++ b/parsing.c
@@ -89,12 +89,14 @@ int cgit_parse_query(char *txt, configfn fn)
t = txt = xstrdup(txt);
while((c=*t) != '\0') {
if (c=='=') {
*t = '\0';
value = t+1;
+ } else if (c=='+') {
+ *t = ' ';
} else if (c=='&') {
*t = '\0';
(*fn)(txt, value);
txt = t+1;
value = NULL;
}