From: Rich Bowen Date: Wed, 20 Jul 2005 16:23:35 +0000 (+0000) Subject: The arguments to require are case-sensitive, so that "Require User" and X-Git-Tag: 2.1.7~5^2~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c887b8e7026d9ab64f721be0eca17f969eb3143;p=apache The arguments to require are case-sensitive, so that "Require User" and "Require Valid-User" don't work. This makes those comparisons case-insensitive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219936 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authz_dbm.c b/modules/aaa/mod_authz_dbm.c index 436c42a6f7..e9f25dc9d6 100644 --- a/modules/aaa/mod_authz_dbm.c +++ b/modules/aaa/mod_authz_dbm.c @@ -167,7 +167,7 @@ static int dbm_check_auth(request_rec *r) t = reqs[x].requirement; w = ap_getword_white(r->pool, &t); - if (!strcmp(w, "file-group")) { + if (!cmpstri(w, "file-group")) { filegroup = apr_table_get(r->notes, AUTHZ_GROUP_NOTE); if (!filegroup) { @@ -179,7 +179,7 @@ static int dbm_check_auth(request_rec *r) } } - if (!strcmp(w, "group") || filegroup) { + if (!cmpstri(w, "group") || filegroup) { const char *realm = ap_auth_name(r); const char *groups; char *v; diff --git a/modules/aaa/mod_authz_groupfile.c b/modules/aaa/mod_authz_groupfile.c index 6f02d06d9d..5d7a9d8957 100644 --- a/modules/aaa/mod_authz_groupfile.c +++ b/modules/aaa/mod_authz_groupfile.c @@ -185,7 +185,7 @@ static int check_user_access(request_rec *r) w = ap_getword_white(r->pool, &t); /* needs mod_authz_owner to be present */ - if (!strcmp(w, "file-group")) { + if (!cmpstri(w, "file-group")) { filegroup = apr_table_get(r->notes, AUTHZ_GROUP_NOTE); if (!filegroup) { @@ -197,7 +197,7 @@ static int check_user_access(request_rec *r) } } - if (!strcmp(w, "group") || filegroup) { + if (!cmpstri(w, "group") || filegroup) { required_group = 1; /* remember the requirement */ /* create group table only if actually needed. */ diff --git a/modules/aaa/mod_authz_user.c b/modules/aaa/mod_authz_user.c index 3478359593..f7f7b910a2 100644 --- a/modules/aaa/mod_authz_user.c +++ b/modules/aaa/mod_authz_user.c @@ -77,10 +77,10 @@ static int check_user_access(request_rec *r) t = reqs[x].requirement; w = ap_getword_white(r->pool, &t); - if (!strcmp(w, "valid-user")) { + if (!cmpstri(w, "valid-user")) { return OK; } - if (!strcmp(w, "user")) { + if (!cmpstri(w, "user")) { /* And note that there are applicable requirements * which we consider ourselves the owner of. */