You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2004/04/10 14:36:34 UTC
cvs commit: httpd-2.0/modules/metadata mod_usertrack.c
nd 2004/04/10 05:36:34
Modified: modules/metadata mod_usertrack.c
Log:
let's be more lenient, in what we accept.
commas are allowed as separators and whitespaces are not a must.
Revision Changes Path
1.50 +2 -2 httpd-2.0/modules/metadata/mod_usertrack.c
Index: mod_usertrack.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_usertrack.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -u -r1.49 -r1.50
--- mod_usertrack.c 8 Mar 2004 23:27:31 -0000 1.49
+++ mod_usertrack.c 10 Apr 2004 12:36:34 -0000 1.50
@@ -161,11 +161,11 @@
const char *cookie_name)
{
/* The goal is to end up with this regexp,
- * ^cookie_name=([^;]+)|;[\t]+cookie_name=([^;]+)
+ * ^cookie_name=([^;,]+)|[;,][ \t]+cookie_name=([^;,]+)
* with cookie_name obviously substituted either
* with the real cookie name set by the user in httpd.conf, or with the
* default COOKIE_NAME. */
- dcfg->regexp_string = apr_pstrcat(p, "^", cookie_name, "=([^;]+)|;[ \t]+", cookie_name, "=([^;]+)", NULL);
+ dcfg->regexp_string = apr_pstrcat(p, "^", cookie_name, "=([^;,]+)|[;,][ \t]*", cookie_name, "=([^;,]+)", NULL);
dcfg->regexp = ap_pregcomp(p, dcfg->regexp_string, REG_EXTENDED);
}