madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22081: LJSUP-12359: not working redirect from L...

Committer: sbelyaev
LJSUP-12359: not working redirect from Livejournal.sg
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2012-05-28 13:30:08 UTC (rev 22080)
+++ trunk/cgi-bin/LJ/Session.pm	2012-05-28 13:49:40 UTC (rev 22081)
@@ -542,8 +542,11 @@
     $host =~ s/^www\.//;
 
     return wantarray ? ( '__external', "") : '__external' if
-        $host =~ m!^([\w\-\.]{1,50})\.\Q$LJ::USER_DOMAIN\E$! or exists $LJ::DOMAIN_JOURNALS_REVERSE{$host};
+        exists $LJ::DOMAIN_JOURNALS_REVERSE{$host};
 
+    return wantarray ? ( '__external', "") : '__external' unless
+        $host =~ m!^([\w\-\.]{1,50})\.\Q$LJ::USER_DOMAIN\E$!;
+
     my $subdomain = lc($host);
 
     if ($LJ::SUBDOMAIN_FUNCTION{$subdomain} eq "journal") {

Tags: livejournal, madeon, pm, sbelyaev
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