From e8d47086726e958739af665f6bdc971ee06f60aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Sat, 10 Apr 2004 12:36:34 +0000 Subject: [PATCH] let's be more lenient, in what we accept. commas are allowed as separators and whitespaces are not a must. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103325 13f79535-47bb-0310-9956-ffa450edef68 --- modules/metadata/mod_usertrack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/metadata/mod_usertrack.c b/modules/metadata/mod_usertrack.c index 4c4f1447eb6..d7bbb224791 100644 --- a/modules/metadata/mod_usertrack.c +++ b/modules/metadata/mod_usertrack.c @@ -161,11 +161,11 @@ static void set_and_comp_regexp(cookie_dir_rec *dcfg, 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); } -- 2.47.3