]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1705217 from trunk:
authorYann Ylavic <ylavic@apache.org>
Fri, 1 Apr 2016 12:20:31 +0000 (12:20 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 1 Apr 2016 12:20:31 +0000 (12:20 +0000)
core/util_script: relax alphanumeric filter of enviroment variable names
on Windows to allow '(' and ')' for passing PROGRAMFILES(X86) et.al.
unadulterated in 64 bit versions of Windows. PR 46751.

Submitted by: gsmith
Reviewed by: jailletc36, sf, ylavic

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

CHANGES
STATUS
server/util_script.c

diff --git a/CHANGES b/CHANGES
index 5a71b72e88f9c2905404d609a28546fcf31c9eeb..21553d950286475770dd9674f2a20cfcdb41ed82 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,11 @@
 
 Changes with Apache 2.4.20
 
+  *) core/util_script: relax alphanumeric filter of enviroment variable names
+     on Windows to allow '(' and ')' for passing PROGRAMFILES(X86) et.al.
+     unadulterated in 64 bit versions of Windows. PR 46751.  
+     [John <john leineweb de>]
+
   *) mod_http2: incrementing keepalives on each request started so that logging
      %k gives increasing numbers per master http2 connection. 
      New documented variables in env, usable in custom log formats: H2_PUSH,
diff --git a/STATUS b/STATUS
index 472029b3116a4cac50efce59fa27702f08a3a5e8..05b1fd9b6fdff03162b868e85c2ef68c80830735 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -113,13 +113,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) core/util_script: relax alphanumeric filter of enviroment variable names
-          on Windows to allow '(' and ')' for passing PROGRAMFILES(X86) et.al.
-          unadulterated in 64 bit versions of Windows. PR 46751.
-     trunk patch: http://svn.apache.org/r1705217
-     2.4.x patch: trunk patch works
-     +1: jailletc36, sf, ylavic
-
   *) Synch 2.4.x with trunk - merge some multi-line log messages in MPMs (+ one style 
      adjustment in mpm_netware.c, merged accidendly)
      Trunk patch: http://svn.apache.org/r1731929
index c8cda244156e477f3a879a74bcb326c9ad987bbf..9a03b026088c25b6e3d5f4fcba22ffa97af1c2f3 100644 (file)
@@ -123,7 +123,11 @@ AP_DECLARE(char **) ap_create_environment(apr_pool_t *p, apr_table_t *t)
             *whack++ = '_';
         }
         while (*whack != '=') {
+#ifdef WIN32
+            if (!apr_isalnum(*whack) && *whack != '(' && *whack != ')') {
+#else
             if (!apr_isalnum(*whack)) {
+#endif
                 *whack = '_';
             }
             ++whack;