diff options
Diffstat (limited to 'scan_urlencoded_query.c')
| -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 85f0d82..e84fbfd 100644 --- a/scan_urlencoded_query.c +++ b/scan_urlencoded_query.c | |||
| @@ -64,13 +64,13 @@ void scan_urlencoded_skipvalue( char **string ) { | |||
| 64 | ssize_t scan_urlencoded_query(char **string, char *deststring, SCAN_SEARCHPATH_FLAG flags) { | 64 | ssize_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=='%') { |
