Browse Source

Lot of Gehacktes around this keyword scanner. Don't return a match if string to compare is shorter than key from table.

undefined
erdgeist 11 years ago
parent
commit
1d821b95cb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scan_urlencoded_query.c

+ 1
- 1
scan_urlencoded_query.c View File

@@ -75,7 +75,7 @@ int scan_find_keywords( const ot_keywords * keywords, char **string, SCAN_SEARCH
if( match_length == 0 ) return -3;

while( keywords->key ) {
if( !strncmp( keywords->key, deststring, match_length ) )
if( !strncmp( keywords->key, deststring, match_length ) && !keywords->key[match_length] )
return keywords->value;
keywords++;
}


Loading…
Cancel
Save