From 6a24bc47d511ade77a264cc219634ed7a529a107 Mon Sep 17 00:00:00 2001 From: Marc Stern Date: Thu, 26 Oct 2023 09:22:22 +0200 Subject: [PATCH] Ignore empty action instead of storing it --- apache2/re.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apache2/re.c b/apache2/re.c index 9ded3be7..d65b0fef 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -1054,6 +1054,12 @@ int msre_parse_generic(apr_pool_t *mp, const char *text, apr_table_t *vartable, /* ignore whitespace */ 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;