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