Skip to content

Commit aac0bee

Browse files
author
Marc Stern
authored
Merge pull request #3003 from marcstern/v2/mst/empty_action
Ignore (consistently) empty actions
2 parents 64b883b + 6a24bc4 commit aac0bee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apache2/re.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,12 @@ int msre_parse_generic(apr_pool_t *mp, const char *text, apr_table_t *vartable,
10581058
/* ignore whitespace */
10591059
while(isspace(*p)) p++;
10601060
if (*p == '\0') return count;
1061+
1062+
/* ignore empty action */
1063+
if (*p == ',') {
1064+
p++;
1065+
continue;
1066+
}
10611067

10621068
/* we are at the beginning of the name */
10631069
name = p;

0 commit comments

Comments
 (0)