Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r18954: LJSV-1528: Adult content and hyphenated ...

Committer: gariev
LJSV-1528: Adult content and hyphenated username
LJSUP-8259: Communities URL

Fixed URLs (now correctly redirected to their canonical URLs):
http://community.ljdev7.livejournal.ru/-2

U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-04-22 05:42:19 UTC (rev 18953)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-04-22 07:29:02 UTC (rev 18954)
@@ -520,7 +520,7 @@
             if (substr($current_url, 0, length($journal_base)) ne $journal_base) {
                 my $new_url = $journal_base;
                 if ($host =~ /^(?:users|community)\./) {
-                    $uri =~ s!^/[^/]+/!/!;
+                    $uri =~ s!^/[^/]+!!;
                 }
                 return redir("$journal_base$uri$args_wq");
             }

Tags: gariev, 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