Committer: vad
LJSV-2107: Some users cannot view their entries, get 'page not found' messageU trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm =================================================================== --- trunk/cgi-bin/Apache/LiveJournal.pm 2012-03-19 13:48:22 UTC (rev 21455) +++ trunk/cgi-bin/Apache/LiveJournal.pm 2012-03-19 13:59:00 UTC (rev 21456) @@ -389,7 +389,7 @@ ## check that request URL is canonical (i.e. it starts with $u->journal_base) ## if not, construct canonical URL and redirect there ## (redirect cases: old http://community.lj.com/name URL, upper-case URLs, hyphen/underscore in usernames etc) - if ($u && $host =~ m!^(users|community)!){ + if ($u && $host =~ m!^(users|community)\.!){ my $journal_base = $u->journal_base(); my $username = $u->username; if ($username !~ /(^_)|(_$)/){