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)>
这个提交包含在:
Lars Hjemli
2007-01-04 16:53:03 +01:00
父节点 05b13194b4
当前提交 52e605caf5
共有 3 个文件被更改,包括 36 次插入0 次删除

2
cgit.h
查看文件

@@ -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,...);