Skip to content

Commit 6a24bc4

Browse files
author
Marc Stern
committed
Ignore empty action instead of storing it
1 parent e9bf697 commit 6a24bc4

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
@@ -1054,6 +1054,12 @@ int msre_parse_generic(apr_pool_t *mp, const char *text, apr_table_t *vartable,
10541054
/* ignore whitespace */
10551055
while(isspace(*p)) p++;
10561056
if (*p == '\0') return count;
1057+
1058+
/* ignore empty action */
1059+
if (*p == ',') {
1060+
p++;
1061+
continue;
1062+
}
10571063

10581064
/* we are at the beginning of the name */
10591065
name = p;

0 commit comments

Comments
 (0)