altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

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

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