2
0
mirror of https://git.zx2c4.com/cgit synced 2025-08-31 14:25:15 +00:00

Handle %xx encoding in querystring

Convert valid %xx expressions in querystring to ascii, ignore invalid
expressions (i.e. eat the three characters %xx).

Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
This commit is contained in:
Lars Hjemli
2007-01-04 16:53:03 +01:00
parent 05b13194b4
commit 52e605caf5
3 changed files with 36 additions and 0 deletions

2
cgit.h
View File

@@ -67,6 +67,8 @@ extern void cgit_global_config_cb(const char *name, const char *value);
extern void cgit_repo_config_cb(const char *name, const char *value);
extern void cgit_querystring_cb(const char *name, const char *value);
extern int hextoint(char c);
extern void *cgit_free_commitinfo(struct commitinfo *info);
extern char *fmt(const char *format,...);