arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone

Blame SOURCES/httpd-2.4.28-statements-comment.patch

e71654
diff --git a/modules/aaa/mod_access_compat.c b/modules/aaa/mod_access_compat.c
e71654
index 3023803..2edf440 100644
e71654
--- a/modules/aaa/mod_access_compat.c
e71654
+++ b/modules/aaa/mod_access_compat.c
e71654
@@ -152,6 +152,11 @@ static const char *allow_cmd(cmd_parms *cmd, void *dv, const char *from,
e71654
     if (strcasecmp(from, "from"))
e71654
         return "allow and deny must be followed by 'from'";
e71654
 
e71654
+    s = ap_strchr(where, '#');
e71654
+    if (s) {
e71654
+        *s = '\0';
e71654
+    }
e71654
+
e71654
     a = (allowdeny *) apr_array_push(cmd->info ? d->allows : d->denys);
e71654
     a->x.from = where;
e71654
     a->limited = cmd->limited;