Ignore empty action instead of storing it

This commit is contained in:
Marc Stern
2023-10-26 09:22:22 +02:00
parent e9bf697c00
commit 6a24bc47d5

View File

@@ -1055,6 +1055,12 @@ int msre_parse_generic(apr_pool_t *mp, const char *text, apr_table_t *vartable,
while(isspace(*p)) p++;
if (*p == '\0') return count;
/* ignore empty action */
if (*p == ',') {
p++;
continue;
}
/* we are at the beginning of the name */
name = p;
while((*p != '\0')&&(*p != '|')&&(*p != ':')&&(*p != ',')&&(!isspace(*p))) p++; /* ENH replace with isvarnamechar() */