holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22412: LJSUP-12376: Create redirect

Committer: akanashin
LJSUP-12376: Create redirect
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-07-09 18:29:03 UTC (rev 22411)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-07-10 08:35:41 UTC (rev 22412)
@@ -1182,6 +1182,10 @@
             LJ::Request->pnotes ('error' => 'e404');
             LJ::Request->pnotes ('remote' => LJ::get_remote());
             return LJ::Request::NOT_FOUND;  # bogus ljconfig
+        } 
+        elsif (my $url = $LJ::DOMAIN_JOURNALS{$user}) {
+            $url = "http://".$url unless $url =~ m!https?://!;
+            return redir($url);
         }
         else {
             my $u = LJ::load_user($user);

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