holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22458: LJSUP-12953: Can't promote travel-beelin...

Committer: akanashin
LJSUP-12953: Can't promote travel-beeline in commercial promo
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-07-17 08:14:32 UTC (rev 22457)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-07-17 10:14:26 UTC (rev 22458)
@@ -427,9 +427,10 @@
     }
 
     if ($host=~m!^(?:http://)?([\w-]+)\.\Q$LJ::USER_DOMAIN\E(?:$|/)!xo) {
-        if ($1 && (my $redir_url = $LJ::DOMAIN_JOURNALS{LJ::canonical_username($1)})) {
+        my $username = $1;
+        if ($username && (my $redir_url = $LJ::DOMAIN_JOURNALS{LJ::canonical_username($username)})) {
             $redir_url = "http://".$redir_url unless $redir_url =~ m!https?://!;
-                return redir($redir_url.$uri);
+            return redir($redir_url.$uri);
         }
     }
 

Tags: akanashin, holyandrew, livejournal, pm
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