Commit fd14eca2 authored by Richard Bowen's avatar Richard Bowen
Browse files

Changed cmpstri to strcasecmp as per Justin's note.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@220073 13f79535-47bb-0310-9956-ffa450edef68
parent 9d06cedf
Loading
Loading
Loading
Loading
+2 −2
Changes for modules/aaa/mod_authz_dbm.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ static int dbm_check_auth(request_rec *r)
        t = reqs[x].requirement;
        w = ap_getword_white(r->pool, &t);
 
        if (!cmpstri(w, "file-group")) {
        if (!strcasecmp(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 (!cmpstri(w, "group") || filegroup) {
        if (!strcasecmp(w, "group") || filegroup) {
            const char *realm = ap_auth_name(r);
            const char *groups;
            char *v;
+2 −2
Changes for modules/aaa/mod_authz_groupfile.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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 (!cmpstri(w, "file-group")) {
        if (!strcasecmp(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 (!cmpstri(w, "group") || filegroup) {
        if (!strcasecmp(w, "group") || filegroup) {
            required_group = 1; /* remember the requirement */

            /* create group table only if actually needed. */
+2 −2
Changes for modules/aaa/mod_authz_user.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -77,10 +77,10 @@ static int check_user_access(request_rec *r)

        t = reqs[x].requirement;
        w = ap_getword_white(r->pool, &t);
        if (!cmpstri(w, "valid-user")) {
        if (!strcasecmp(w, "valid-user")) {
            return OK;
        }
        if (!cmpstri(w, "user")) {
        if (!strcasecmp(w, "user")) {
            /* And note that there are applicable requirements 
             * which we consider ourselves the owner of.
             */