You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2009/02/16 15:42:54 UTC

svn commit: r744924 - /httpd/apreq/trunk/library/t/cookie.c

Author: joes
Date: Mon Feb 16 14:42:52 2009
New Revision: 744924

URL: http://svn.apache.org/viewvc?rev=744924&view=rev
Log:
parses cleanly if the , in the cookie
is within a quoted value

Modified:
    httpd/apreq/trunk/library/t/cookie.c

Modified: httpd/apreq/trunk/library/t/cookie.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/library/t/cookie.c?rev=744924&r1=744923&r2=744924&view=diff
==============================================================================
--- httpd/apreq/trunk/library/t/cookie.c (original)
+++ httpd/apreq/trunk/library/t/cookie.c Mon Feb 16 14:42:52 2009
@@ -62,9 +62,9 @@
                                  "62.4479471199095321000.1234471650.12344"
                                  "71650.1234471650.1; __utmb=144149162.24"
                                  ".10.1234471650; __utmc=144149162; __utm"
-                                 "z=144149162.1234471650.1.1.utmcsr=szuka"
-                                 "j.xxxx.pl|utmccn=(referral)|utmcmd=refe"
-                                 "rral|utmcct=/internet/0,0.html";
+                                 "z=\"144149162.1234471650.1.1.utmcsr=szu"
+                                 "kaj.xxxx.pl|utmccn=(referral)|utmcmd=re"
+                                 "ferral|utmcct=/internet/0,0.html\"";
 
 static apr_table_t *jar, *jar2, *jar3, *jar4, *jar5, *jar6, *jar7;
 static apr_pool_t *p;
@@ -91,7 +91,7 @@
     AT_int_eq(apreq_parse_cookie_header(p, jar6, cgcookies3), APREQ_ERROR_MISMATCH);
     jar7 = apr_table_make(p, APREQ_DEFAULT_NELTS);
     AT_not_null(jar7);
-    AT_int_eq(apreq_parse_cookie_header(p, jar7, cgcookies4), APREQ_ERROR_NOTOKEN);
+    AT_int_eq(apreq_parse_cookie_header(p, jar7, cgcookies4), APR_SUCCESS);
 }
 
 static void jar_get_rfc(dAT)