From cc64ed436397346c2eb1358e9e67cc51abcd81d0 Mon Sep 17 00:00:00 2001 From: Packit Date: Oct 26 2020 15:22:31 +0000 Subject: Apply patch httpd-2.4.28-statements-comment.patch patch_name: httpd-2.4.28-statements-comment.patch present_in_specfile: true --- diff --git a/modules/aaa/mod_access_compat.c b/modules/aaa/mod_access_compat.c index e9f1abe..b98bc05 100644 --- a/modules/aaa/mod_access_compat.c +++ b/modules/aaa/mod_access_compat.c @@ -152,6 +152,11 @@ static const char *allow_cmd(cmd_parms *cmd, void *dv, const char *from, if (strcasecmp(from, "from")) return "allow and deny must be followed by 'from'"; + s = ap_strchr(where, '#'); + if (s) { + *s = '\0'; + } + a = (allowdeny *) apr_array_push(cmd->info ? d->allows : d->denys); a->x.from = where; a->limited = cmd->limited;