[-] FO: Fix cookie domain detection for com.co tld #PSCFV-5256

This commit is contained in:
Rémi Gaillard
2013-01-07 12:01:11 +01:00
parent 1df0aadb63
commit ef331654f2
+1 -1
View File
@@ -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;