You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2014/03/31 21:28:00 UTC

svn commit: r1583415 - in /tomcat/jk/trunk: native/common/jk_lb_worker.c xdocs/miscellaneous/changelog.xml

Author: rjung
Date: Mon Mar 31 19:27:59 2014
New Revision: 1583415

URL: http://svn.apache.org/r1583415
Log:
BZ 55683: Remove quotes from quoted session cookies.

Modified:
    tomcat/jk/trunk/native/common/jk_lb_worker.c
    tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/jk/trunk/native/common/jk_lb_worker.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_lb_worker.c?rev=1583415&r1=1583414&r2=1583415&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_lb_worker.c (original)
+++ tomcat/jk/trunk/native/common/jk_lb_worker.c Mon Mar 31 19:27:59 2014
@@ -470,6 +470,11 @@ static char *get_cookie(jk_ws_service_t 
                             sz = strlen(id_start);
                             id_end = id_start + sz;
                         }
+                        /* Chop off surrounding '"' (quoted cookie) */
+                        if (sz > 1 && *id_start == '"' && *(id_start + sz - 1) == '"') {
+                            id_start++;
+                            sz -= 2;
+                        }
                         if (result == NULL) {
                             result = jk_pool_alloc(s->pool, sz + 1);
                             memcpy(result, id_start, sz);

Modified: tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml?rev=1583415&r1=1583414&r2=1583415&view=diff
==============================================================================
--- tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml Mon Mar 31 19:27:59 2014
@@ -51,6 +51,9 @@
       <update>
         <bug>56297</bug>: Improve key hash function. Copied from APR. (rjung)
       </update>
+      <fix>
+        <bug>55683</bug>: Remove quotes from quoted session cookies. (rjung)
+      </fix>
     </changelog>
   </subsection>
 </section>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org