mirror of
https://erdgeist.org/gitweb/opentracker
synced 2024-05-10 07:54:50 +00:00
Now allow * in torrents
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
|
mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
|
||||||
we add '%' to the matrix to not stop at encoded chars.
|
we add '%' to the matrix to not stop at encoded chars.
|
||||||
*/
|
*/
|
||||||
static const unsigned char reserved_matrix[] = { 0xA2, 0x63, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47};
|
static const unsigned char reserved_matrix[] = { 0xA2, 0x67, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x47};
|
||||||
static int is_unreserved( unsigned char c ) {
|
static int is_unreserved( unsigned char c ) {
|
||||||
if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7));
|
if( ( c <= 32 ) || ( c >= 127 ) ) return 0; return 1&(reserved_matrix[(c-32)>>3]>>(c&7));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user