Committer: akanashin
LJSUP-11857: Cyr sub domainsU trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm =================================================================== --- trunk/cgi-bin/Apache/LiveJournal.pm 2012-04-27 13:57:53 UTC (rev 21837) +++ trunk/cgi-bin/Apache/LiveJournal.pm 2012-04-27 14:03:46 UTC (rev 21838) @@ -1210,12 +1210,12 @@ $u = LJ::want_user($u); -# if ($LJ::DOMAIN_JOURNALS_REVERSE{$u->user} || $LJ::DOMAIN_JOURNALS{$u->user}) { -# my $view = $determine_view->($u->user, "other:$host$hostport", $uri); -# return $view if defined $view; -# } else { - return redir("http://".$u->user.$LJ::USER_DOMAIN, 302); -# } + if ($LJ::DOMAIN_JOURNALS_REVERSE{$u->user} || $LJ::DOMAIN_JOURNALS{$u->user}) { + my $view = $determine_view->($u->user, "other:$host$hostport", $uri); + return $view if defined $view; + } else { + return redir("http://".$u->user.".".$LJ::USER_DOMAIN); + } LJ::Request->pnotes ('error' => 'baduser'); LJ::Request->pnotes ('remote' => LJ::get_remote());