about summary refs log tree commit diff
path: root/cgit.h
diff options
context:
space:
mode:
authorLars Hjemli <larsh@hal-2004.(none)>2007-01-04 16:53:03 +0100
committerLars Hjemli <larsh@hal-2004.(none)>2007-01-04 16:57:00 +0100
commit52e605caf573fa20fdd4fbac5e1cc69b7740b1f5 (patch)
tree62c7bfb147f93a850f430185961a89ee51b8470a /cgit.h
parentHandle '+' in querystring (diff)
downloadcgit-pink-52e605caf573fa20fdd4fbac5e1cc69b7740b1f5.tar.gz
cgit-pink-52e605caf573fa20fdd4fbac5e1cc69b7740b1f5.zip
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)>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 249650e..eb8f08c 100644
--- a/cgit.h
+++ b/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,...);