diff options
author | Stefan Bühler <stbuehler@web.de> | 2013-08-30 13:14:54 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2013-08-30 13:14:54 +0000 |
commit | 2bcf65c285da190028ef4a2dfd5e36f95dcb2b09 (patch) | |
tree | d55dc489019fb81615ffdcead70d97fef818abde /src/mod_auth.c | |
parent | 559b198f862903885b0e54a12aa9ac31d9721002 (diff) | |
download | lighttpd-git-2bcf65c285da190028ef4a2dfd5e36f95dcb2b09.tar.gz |
[mod_auth] some cleanup, only search for matching auth.require path once
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2893 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_auth.c')
-rw-r--r-- | src/mod_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_auth.c b/src/mod_auth.c index 3fa00bc6..0528ed0b 100644 --- a/src/mod_auth.c +++ b/src/mod_auth.c @@ -249,13 +249,13 @@ static handler_t mod_auth_uri_handler(server *srv, connection *con, void *p_d) { auth_type = "Basic"; if (0 == strcmp(method->value->ptr, "basic")) { - auth_satisfied = http_auth_basic_check(srv, con, p, req, con->uri.path, auth_realm+1); + auth_satisfied = http_auth_basic_check(srv, con, p, req, auth_realm+1); } } else if ((auth_type_len == 6) && (0 == strncasecmp(http_authorization, "Digest", auth_type_len))) { auth_type = "Digest"; if (0 == strcmp(method->value->ptr, "digest")) { - if (-1 == (auth_satisfied = http_auth_digest_check(srv, con, p, req, con->uri.path, auth_realm+1))) { + if (-1 == (auth_satisfied = http_auth_digest_check(srv, con, p, req, auth_realm+1))) { con->http_status = 400; con->mode = DIRECT; |