mirror of
https://git.zx2c4.com/cgit
synced 2025-07-28 14:44:57 +02:00
Handle '+' in querystring
Translate '+' to ' ' in querystring parser (still doesn't handle %xx) Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
732d68d240
commit
05b13194b4
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue