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