Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:7429: Inside #if defined(SECURITY_PATTERN_DEBUG) || defined(HTACCESS_DEBUG)
   },   #if defined(SECURITY_PATTERN_DEBUG) || defined(HTACCESS_DEBUG)    " report_debug(sprintf(\"Verifying against IP %%O (0x%%08x).\\n\",\n"    " id->remoteaddr, remote_ip));\n"   #endif /* SECURITY_PATTERN_DEBUG || HTACCESS_DEBUG */    " if (%s)",    (< " int remote_ip = Roxen.ip_to_int(id->remoteaddr)" >),    }), "ip", }),    ({ "user=%s",1,({ 1,    lambda( string x ) { -  return ({sprintf("(< %{%O, %}>)", x/"," )}); +  return ({sprintf("((multiset)(< %{%O, %}>))", x/"," )});    },       " if (((user || (user = authmethod->authenticate(id, userdb_module)))\n"    " && ((%[0]s->any) || (%[0]s[user->name()]))) || %[0]s->ANY) ",    (<" User user" >),    // No need to NOCACHE () here, since it's up to the    // auth-modules to do that.    }), "user", }),    ({ "group=%s",1,({ 1,    lambda( string x ) { -  return ({sprintf("(< %{%O, %}>)", x/"," )}); +  return ({sprintf("((multiset)(< %{%O, %}>))", x/"," )});    },    " if ((user || (user = authmethod->authenticate(id, userdb_module)))\n"    " && ((%[0]s->any && sizeof(user->groups())) ||\n"    " sizeof(mkmultiset(user->groups())&%[0]s)))",    (<" User user" >),    // No need to NOCACHE () here, since it's up to the    // auth-modules to do that.    }), "group", }),    ({ "dns=%s",1,({    " if(!dns && \n"