all repos — cgit @ 05b13194b4b40a2614692125d5037ef20c5fb20e

a hyperfast web frontend for git written in c

Handle '+' in querystring

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

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 28 Dec 2006 02:51:46 +0100
commit

05b13194b4b40a2614692125d5037ef20c5fb20e

parent

732d68d240b95dc428c92fc94bce9adb8912094e

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M parsing.cparsing.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);