]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1734294 from trunk:
authorYann Ylavic <ylavic@apache.org>
Thu, 10 Mar 2016 12:34:43 +0000 (12:34 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 10 Mar 2016 12:34:43 +0000 (12:34 +0000)
followup to r1734125: null check for r->args
before cleaning up some QSA cases.

Submitted by: covener
Reviewed by: covener, rpluem, ylavic
Backported by: ylavic

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

STATUS
modules/mappers/mod_rewrite.c

diff --git a/STATUS b/STATUS
index 57009d99122853c410b42a5fbd07e064a4261de4..197d2cae57240d0144e1eb0d8afe7c563a949736 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. ]
 
-  *) mod_rewrite: bug in recently backported r1734125.
-     trunk patch: http://svn.apache.org/r1734294.
-     2.4.x patch: trunk works
-     +1 covener, rpluem, ylavic
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 5d3cffeb946a98a075e37b1004ccf87c4ae64e37..1cf110be6c24a7b33f8be6e3b6ed80865886c3d9 100644 (file)
@@ -762,12 +762,15 @@ static void splitout_queryargs(request_rec *r, int qsappend, int qsdiscard,
             r->args = apr_pstrdup(r->pool, q);
         }
 
-        len = strlen(r->args);
-        if (!len) {
-            r->args = NULL;
-        }
-        else if (r->args[len-1] == '&') {
-            r->args[len-1] = '\0';
+        if (r->args) { 
+           len = strlen(r->args);
+      
+           if (!len) {
+               r->args = NULL;
+           }
+           else if (r->args[len-1] == '&') {
+               r->args[len-1] = '\0';
+           }
         }
 
         rewritelog((r, 3, NULL, "split uri=%s -> uri=%s, args=%s", olduri,