Merge pull request #3003 from marcstern/v2/mst/empty_action

Ignore (consistently) empty actions
This commit is contained in:
Marc Stern 2024-02-01 11:18:27 +01:00 committed by GitHub
commit aac0bee2ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1059,6 +1059,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() */