Fix logical disjunction and conjunction issues

This commit is contained in:
Breno Silva 2013-08-12 18:43:56 -03:00
parent 2c2adc20f3
commit 7e0a9ecf7d
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;
}