-rw-r--r-- | parsing.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |