diff options
author | erdgeist <> | 2007-03-03 02:10:52 +0000 |
---|---|---|
committer | erdgeist <> | 2007-03-03 02:10:52 +0000 |
commit | f1359eb65262fb72bab7044b5a41db883bd05809 (patch) | |
tree | b616b6dd4f7a58404e483badef482c31f892e8a7 | |
parent | a73186988fed55d3eae185d9576feb5ab9a36e1f (diff) |
Some clients even send plain : in their requests
-rw-r--r-- | scan_urlencoded_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c index d89e610..f9c38ed 100644 --- a/scan_urlencoded_query.c +++ b/scan_urlencoded_query.c | |||
@@ -11,11 +11,11 @@ | |||
11 | mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" | 11 | mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" |
12 | we add '%' to the matrix to not stop at encoded chars. | 12 | we add '%' to the matrix to not stop at encoded chars. |
13 | After losing too many requests to being too strict, add the following characters to reserved matrix | 13 | After losing too many requests to being too strict, add the following characters to reserved matrix |
14 | relax = "+" | "," | "/" | ";" | "<" | ">" | 14 | relax = "+" | "," | "/" | ";" | "<" | ">" | ":" |
15 | 15 | ||
16 | static const unsigned char reserved_matrix_strict[] = { 0xA2, 0x67, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47}; | 16 | static const unsigned char reserved_matrix_strict[] = { 0xA2, 0x67, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47}; |
17 | */ | 17 | */ |
18 | static const unsigned char reserved_matrix[] = { 0xA2, 0xFF, 0xFF, 0x5B, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47}; | 18 | static const unsigned char reserved_matrix[] = { 0xA2, 0xFF, 0xFF, 0x5F, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47}; |
19 | 19 | ||
20 | static int is_unreserved( unsigned char c ) { | 20 | static int is_unreserved( unsigned char c ) { |
21 | if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7)); | 21 | if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7)); |