From ef331654f288ed6a3c89beffd00abcd34b92c0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 7 Jan 2013 12:01:11 +0100 Subject: [PATCH] [-] FO: Fix cookie domain detection for com.co tld #PSCFV-5256 --- classes/Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Cookie.php b/classes/Cookie.php index 6f9337108..655ada642 100644 --- a/classes/Cookie.php +++ b/classes/Cookie.php @@ -107,7 +107,7 @@ class CookieCore { if ($shared_url != $out[4]) continue; - if (preg_match('/^(?:.*\.)?([^.]*(?:.{2,3})?\..{2,3})$/Ui', $shared_url, $res)) + if (preg_match('/^(?:.*\.)?([^.]*(?:.{2,4})?\..{2,3})$/Ui', $shared_url, $res)) { $domain = '.'.$res[1]; break;