mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Merge pull request #3003 from marcstern/v2/mst/empty_action
Ignore (consistently) empty actions
This commit is contained in:
commit
aac0bee2ea
@ -1058,6 +1058,12 @@ int msre_parse_generic(apr_pool_t *mp, const char *text, apr_table_t *vartable,
|
|||||||
/* ignore whitespace */
|
/* ignore whitespace */
|
||||||
while(isspace(*p)) p++;
|
while(isspace(*p)) p++;
|
||||||
if (*p == '\0') return count;
|
if (*p == '\0') return count;
|
||||||
|
|
||||||
|
/* ignore empty action */
|
||||||
|
if (*p == ',') {
|
||||||
|
p++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* we are at the beginning of the name */
|
/* we are at the beginning of the name */
|
||||||
name = p;
|
name = p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user