]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r440160 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 7 Nov 2006 13:29:57 +0000 (13:29 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 7 Nov 2006 13:29:57 +0000 (13:29 +0000)
* Extract stickysession information correctly in the case that it is given
  as parameter like in the following example:

  www.someplace.com/somewhere/?jsessionid=gggfgdufdfoef.server&parameter=value

  So far we were only able to handle stickysession information encoded in the
  following form:

  www.someplace.com/somewhere/;jsessionid=gggfgdufdfoef.server?parameter=value

PR: 40400

Submitted by: rpluem
Reviewed by: jim

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

CHANGES
STATUS
modules/proxy/mod_proxy_balancer.c

diff --git a/CHANGES b/CHANGES
index 28b8ce21860fa9715fc2a92e72a8b317517701c2..e6acc658350fb63522b88ab3f531da46bd5cfcde 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.4
 
+  *) mod_proxy_balancer: Extract stickysession routing information contained as
+     parameter in the URL correctly. PR 40400.
+     [Ruediger Pluem, Tomokazu Harada <harada sysrdc.ns-sol.co.jp>]
+
   *) mod_disk_cache: Make sure that only positive integers are accepted
      for the CacheMaxFileSize and CacheMinFileSize parameters in the
      config file. PR39380 [Niklas Edmundsson <nikke acc.umu.se>]
diff --git a/STATUS b/STATUS
index 78d5a6784fd47a2292fd0169aeef05269d60be52..d06bba472c1edbc3733f7058ea8623ef31e2a63e 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -77,15 +77,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-    * mod_proxy_balancer: Extract stickysession routing information contained as
-      parameter in the URL correctly.
-        PR: 40400
-      Trunk version of patch:
-        http://svn.apache.org/viewvc?view=rev&rev=440160
-      2.2.x version of patch:
-        Trunk version works
-      +1: rpluem, jim, mturk
-
   * mod_proxy: Don't try to use dead backend connection in proxy
      http://svn.apache.org/viewvc?view=rev&revision=431339
      PR#37770.  Patch by Olivier Boel
index 32cbe4e4f16c37cd2235f9683f7e1189624c7195..c4e3307901193e6f670d89c5bca4e9cdf0346e96 100644 (file)
@@ -122,9 +122,7 @@ static char *get_path_param(apr_pool_t *pool, char *url,
             ++path;
             if (strlen(path)) {
                 char *q;
-                path = apr_pstrdup(pool, path);
-                if ((q = strchr(path, '?')))
-                    *q = '\0';
+                path = apr_strtok(apr_pstrdup(pool, path), "?&", &q);
                 return path;
             }
         }