Committer: sbelyaev
LJSV-2133: Domain mapping broken for authorized users (work as redirect to login.bml)U trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm =================================================================== --- trunk/cgi-bin/LJ/Session.pm 2012-04-04 11:13:22 UTC (rev 21632) +++ trunk/cgi-bin/LJ/Session.pm 2012-04-04 11:16:29 UTC (rev 21633) @@ -895,6 +895,19 @@ path => '/', delete => 1); + my $curl = _current_url(); + if ( $class->domain_journal($curl) eq '__external' ) { + $curl =~ m|^https?://(.+?)/|i; + my $domain = $1; + + set_cookie('ljdomsess.__external' + => "", + domain => $domain, + path => '/', + delete => 1); + } + + # set fb global cookie if ($LJ::FB_SITEROOT) { my $fb_cookie = fb_cookie();