[livejournal] r22412: LJSUP-12376: Create redirect
Committer: akanashin
LJSUP-12376: Create redirectU 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);
