mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Improvements on gsblookup - reduce multiple slashes
This commit is contained in:
@@ -1016,6 +1016,13 @@ const char *gsb_reduce_char(modsec_rec *msr, const char *domain) {
|
|||||||
if(*ptr == '.')
|
if(*ptr == '.')
|
||||||
skip = 1;
|
skip = 1;
|
||||||
|
|
||||||
|
ptr--;
|
||||||
|
break;
|
||||||
|
case '/':
|
||||||
|
ptr++;
|
||||||
|
if(*ptr == '/')
|
||||||
|
skip = 1;
|
||||||
|
|
||||||
ptr--;
|
ptr--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user