arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone

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

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