summaryrefslogtreecommitdiff
path: root/scan_urlencoded_query.c
diff options
context:
space:
mode:
authorerdgeist <>2008-10-04 05:40:51 +0000
committererdgeist <>2008-10-04 05:40:51 +0000
commite534db03c6877f8ac0559f63840e9a00e9bd43bf (patch)
tree811181b9b39d0484e28eb25cbb9f2eea094978e2 /scan_urlencoded_query.c
parent8cbfc8602c73e55770f3c06d8ea42758b22a0401 (diff)
added live sync code
added a config file parser added tracker id changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE added an option to switch off fullscrapes cleaned up many internal hardcoded values, like PROTO_FLAG,
Diffstat (limited to 'scan_urlencoded_query.c')
-rw-r--r--scan_urlencoded_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c
index 85f0d82..e84fbfd 100644
--- a/scan_urlencoded_query.c
+++ b/scan_urlencoded_query.c
@@ -64,13 +64,13 @@ void scan_urlencoded_skipvalue( char **string ) {
64ssize_t scan_urlencoded_query(char **string, char *deststring, SCAN_SEARCHPATH_FLAG flags) { 64ssize_t scan_urlencoded_query(char **string, char *deststring, SCAN_SEARCHPATH_FLAG flags) {
65 const unsigned char* s=*(const unsigned char**) string; 65 const unsigned char* s=*(const unsigned char**) string;
66 unsigned char *d = (unsigned char*)deststring; 66 unsigned char *d = (unsigned char*)deststring;
67 unsigned char b, c, f; 67 unsigned char b, c;
68 68
69 /* This is the main decoding loop. 69 /* This is the main decoding loop.
70 'flag' determines, which characters are non-terminating in current context 70 'flag' determines, which characters are non-terminating in current context
71 (ie. stop at '=' and '&' if scanning for a 'param'; stop at '?' if scanning for the path ) 71 (ie. stop at '=' and '&' if scanning for a 'param'; stop at '?' if scanning for the path )
72 */ 72 */
73 while( ( f = is_unreserved[ c = *s++ ] ) & flags ) { 73 while( is_unreserved[ c = *s++ ] & flags ) {
74 74
75 /* When encountering an url escaped character, try to decode */ 75 /* When encountering an url escaped character, try to decode */
76 if( c=='%') { 76 if( c=='%') {