mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Fix logical disjunction and conjunction issues
This commit is contained in:
@@ -774,7 +774,7 @@ static size_t parse_qstring_core(sfilter * sf, int offset)
|
||||
}
|
||||
|
||||
ch = cs[pos + 2];
|
||||
if (ch < 33 && ch > 127) {
|
||||
if (ch < 33 || ch > 127) {
|
||||
return parse_word(sf);
|
||||
}
|
||||
switch (ch) {
|
||||
|
@@ -110,7 +110,7 @@ static int unicode_map_create(directory_config *dcfg, char **error_msg)
|
||||
ucode = apr_strtok(mapping,":", &hmap);
|
||||
sscanf(ucode,"%x",&Code);
|
||||
sscanf(hmap,"%x",&Map);
|
||||
if(Code >= 0 || Code <= 65535) {
|
||||
if(Code >= 0 && Code <= 65535) {
|
||||
unicode_map_table[Code] = Map;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user