]> granicus.if.org Git - apache/commitdiff
Merge r1735786 from trunk:
authorJim Jagielski <jim@apache.org>
Sat, 19 Mar 2016 18:59:23 +0000 (18:59 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 19 Mar 2016 18:59:23 +0000 (18:59 +0000)
fix order of lowercase/compare for r->handler

Submitted by: covener
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1735802 13f79535-47bb-0310-9956-ffa450edef68

STATUS
server/core.c

diff --git a/STATUS b/STATUS
index 1a5e0c6d6f6aa123f754ed5329c4ca2ab29fe571..20e0981ed7d50313e7e56f11401023b05e4adbb4 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -112,10 +112,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) core: fix r->handler = None case sensitivity
-     trunk patch: http://svn.apache.org/r1735786
-     2.4.x patch: trunk works
-     +1: covener, ylavic, jim
    
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
index 4a420c835dc2e1f12b3228073b3169724e243978..b3d72f434d59ccfd794da9e59a1d320fb1189230 100644 (file)
@@ -4453,16 +4453,16 @@ static int core_override_type(request_rec *r)
                           "Can't evaluate handler expression: %s", err);
             return HTTP_INTERNAL_SERVER_ERROR;
         }
+
+        if (val != ap_strstr_c(val, "proxy:unix")) { 
+            /* Retained for compatibility --  but not for UDS */
+            char *tmp = apr_pstrdup(r->pool, val);
+            ap_str_tolower(tmp);
+            val = tmp;
+        }
+
         if (strcmp(val, "none")) { 
-            if (val != ap_strstr_c(val, "proxy:unix")) { 
-                /* Retained for compatibility --  but not for UDS */
-                char *tmp = apr_pstrdup(r->pool, val);
-                ap_str_tolower(tmp);
-                r->handler = tmp;
-            }
-            else { 
-                r->handler = val;
-            }
+            r->handler = val;
         }
     }
     else if (conf->handler && strcmp(conf->handler, "none")) {