vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21451: LJSV-2107: Some users cannot view their ...

Committer: vad
LJSV-2107: Some users cannot view their entries, get 'page not found' message
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-03-19 12:47:03 UTC (rev 21450)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-03-19 12:55:52 UTC (rev 21451)
@@ -392,7 +392,7 @@
             my $journal_base = $u->journal_base();
             my $username = $u->username;
             if ($username !~ /(^_)|(_$)/){
-                $uri =~ s!^/$username/!/!;
+                $uri =~ s!^/$username(/|$)!/!;
                 return redir("$journal_base$uri$args_wq", LJ::Request::HTTP_MOVED_PERMANENTLY());
             }
         }

Tags: livejournal, pm, vad, vadvs
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