]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
When using Redirect in directory context, append requested query
authorAndré Malo <nd@apache.org>
Thu, 24 Apr 2003 16:16:22 +0000 (16:16 +0000)
committerAndré Malo <nd@apache.org>
Thu, 24 Apr 2003 16:16:22 +0000 (16:16 +0000)
string if there's no one supplied by configuration.

PR: 10961
Reviewed by: Jeff Trawick, Jim Jagielski

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

CHANGES
STATUS
modules/mappers/mod_alias.c

diff --git a/CHANGES b/CHANGES
index 637265344fb4f4c72b19ef6c0f75de835976e9ee..fb3f0a945de7b2578b11a358f391ea4a609b288b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
 Changes with Apache 2.0.46
 
+  *) When using Redirect in directory context, append requested query
+     string if there's no one supplied by configuration. PR 10961.
+     [André Malo]
+
   *) Unescape the supplied wildcard pattern in mod_autoindex. Otherwise
      the pattern will not always match as desired. PR 12596.
      [André Malo]
diff --git a/STATUS b/STATUS
index 01fd04c1dd8ebdc2d4881019490ff777f3a55d73..cc80a88407f938568e279e0e37b2adf6719df55d 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2003/04/24 15:38:41 $]
+Last modified at [$Date: 2003/04/24 16:16:19 $]
 
 Release:
 
@@ -136,13 +136,6 @@ PATCHES TO PORT FROM 2.1
       modules/mappers/mod_rewrite.c: r1.146
       +1: nd
 
-    * When using Redirect in directory context, append requested query
-      string if there's no one supplied by configuration. PR 10961.
-      (2.0 + 1.3)
-      modules/mappers/mod_alias.c: r1.49
-      +1: nd, trawick (this is simple...  look how query string is
-          appended in the other situation), jim
-
     * mod_negotiation: parse quality values independent from
       the current locale and level values as integers. PR 17564.
       (essentially: get a rid of atof()) (2.0 + 1.3)
index 3e21d6f0d63597810a016a1515a3902fd6432d47..b5bea281c05070461c9f019c29aa94ae25aac0b4 100644 (file)
@@ -463,6 +463,12 @@ static int fixup_redir(request_rec *r)
                               r->uri, ret);
             }
             else {
+                /* append requested query only, if the config didn't
+                 * supply its own.
+                 */
+                if (r->args && !ap_strchr(ret, '?')) {
+                    ret = apr_pstrcat(r->pool, ret, "?", r->args, NULL);
+                }
                 apr_table_setn(r->headers_out, "Location", ret);
             }
         }