]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Some clients even send plain : in their requests
authorerdgeist <>
Sat, 3 Mar 2007 02:10:52 +0000 (02:10 +0000)
committererdgeist <>
Sat, 3 Mar 2007 02:10:52 +0000 (02:10 +0000)
scan_urlencoded_query.c

index d89e61040e879ed09945fb10d5d1407eca75a75f..f9c38ed929824f3eaea6ecb22ac94b1d7e8afc0b 100644 (file)
          mark          = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
    we add '%' to the matrix to not stop at encoded chars.
    After losing too many requests to being too strict, add the following characters to reserved matrix
-         relax         = "+" | "," | "/" | ";" | "<" | ">"
+         relax         = "+" | "," | "/" | ";" | "<" | ">" | ":"
 
 static const unsigned char reserved_matrix_strict[] = { 0xA2, 0x67, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47};
 */
-static const unsigned char reserved_matrix[] = { 0xA2, 0xFF, 0xFF, 0x5B, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47};
+static const unsigned char reserved_matrix[] = { 0xA2, 0xFF, 0xFF, 0x5F, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47};
 
 static int is_unreserved( unsigned char c ) {
   if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7));