mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix logical disjunction and conjunction issues
This commit is contained in:
parent
2c2adc20f3
commit
7e0a9ecf7d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user