Skip to content
Permalink
Browse files

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

  • Loading branch information...
rGaillard committed Jan 7, 2013
1 parent 1df0aad commit ef331654f288ed6a3c89beffd00abcd34b92c0b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/Cookie.php
@@ -107,7 +107,7 @@ protected function getDomain($shared_urls = null)
{
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;

0 comments on commit ef33165

Please sign in to comment.
You can’t perform that action at this time.