ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r18974: LJSUP-8301: SMS & Yandex.money payment p...

Committer: ssafronova
LJSUP-8301: SMS & Yandex.money payment process should be transfered to US servers
Fix 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[]'} || [] });
     }
 

Tags: livejournal, pm, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments