summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc5ecbf)
raw | patch | inline | side by side (parent: cc5ecbf)
author | Florian Forster <ff@octo.it> | |
Wed, 28 Jul 2010 16:17:09 +0000 (18:17 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 28 Jul 2010 16:17:09 +0000 (18:17 +0200) |
src/utils_cgi.c | patch | blob | history |
diff --git a/src/utils_cgi.c b/src/utils_cgi.c
index 785191422c9e449a2d85995581a53675dbf3f26a..475e14e4361427c394b946cce756dc13c35dd8ce 100644 (file)
--- a/src/utils_cgi.c
+++ b/src/utils_cgi.c
}
else if ((((unsigned char) src[in]) < 32)
|| (src[in] == ' ')
- || (src[in] == '&')
- || (src[in] == ';')
- || (src[in] == '?')
- || (src[in] == '/')
+ /* RFC 3986, gen-delims */
+ || (src[in] == ':') || (src[in] == '/') || (src[in] == '?')
+ || (src[in] == '#') || (src[in] == '[') || (src[in] == ']')
+ || (src[in] == '@')
+ /* RFC 3986, sub-delims */
+ || (src[in] == '!') || (src[in] == '$') || (src[in] == '&')
+ || (src[in] == '(') || (src[in] == ')') || (src[in] == '*')
+ || (src[in] == '+') || (src[in] == ',') || (src[in] == ';')
+ || (src[in] == '=') || (src[in] == '\'')
+ /* 8-bit data */
|| (((unsigned char) src[in]) >= 128))
{
char esc[4];