]> granicus.if.org Git - apache/commitdiff
let's be more lenient, in what we accept.
authorAndré Malo <nd@apache.org>
Sat, 10 Apr 2004 12:36:34 +0000 (12:36 +0000)
committerAndré Malo <nd@apache.org>
Sat, 10 Apr 2004 12:36:34 +0000 (12:36 +0000)
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

index 4c4f1447eb6b04fe0677e707903eae429d4b7ffb..d7bbb2247917abfad994ea17a3a6b921e8fee1ee 100644 (file)
@@ -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);
 }