summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-01-22 02:41:09 +0000
committererdgeist <>2007-01-22 02:41:09 +0000
commitbee4ad4ba0b9c2fccbc2be1a5a9092d5030914b2 (patch)
treeb317ea21e9e2bbfe799957acb202f7037a5773f6
parente161ef790a9b96ac27be6078259b4ad47f240f51 (diff)
Now allow * in torrents
-rw-r--r--scan_urlencoded_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c
index 223a4ad..b255811 100644
--- a/scan_urlencoded_query.c
+++ b/scan_urlencoded_query.c
@@ -11,7 +11,7 @@
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*/ 13*/
14static const unsigned char reserved_matrix[] = { 0xA2, 0x63, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47}; 14static const unsigned char reserved_matrix[] = { 0xA2, 0x67, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47};
15static int is_unreserved( unsigned char c ) { 15static int is_unreserved( unsigned char c ) {
16 if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7)); 16 if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7));
17} 17}