Committer: ssafronova
LJSUP-8301: SMS & Yandex.money payment process should be transfered to US serversFix bug with port number in foreign domain autorization
U trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm =================================================================== --- trunk/cgi-bin/LJ/Session.pm 2011-04-26 09:27:59 UTC (rev 18973) +++ trunk/cgi-bin/LJ/Session.pm 2011-04-26 10:21:44 UTC (rev 18974) @@ -624,7 +624,7 @@ my $sessobj; my $host = LJ::Request->header_in("Host"); - unless ($host =~ /\.$LJ::DOMAIN$/) { # foreign domain case + unless ($host =~ /\.$LJ::DOMAIN(:\d+)?$/) { # foreign domain case return LJ::Session->session_from_ljpta_cookie(\%getopts, @{ $BML::COOKIE{'ljpta[]'} || [] }); }