From: André Malo Date: Sat, 10 Apr 2004 12:36:34 +0000 (+0000) Subject: let's be more lenient, in what we accept. X-Git-Tag: pre_ajp_proxy~396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8d47086726e958739af665f6bdc971ee06f60aa;p=apache 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 --- diff --git a/modules/metadata/mod_usertrack.c b/modules/metadata/mod_usertrack.c index 4c4f1447eb..d7bbb22479 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); }