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