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

[livejournal] r18717: LJSUP-8384: If user types "www.username....

Committer: gariev
LJSUP-8384: If user types "www.username.livejournal.com" we should open "username.livejournal.com"
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2011-03-28 05:37:39 UTC (rev 18716)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2011-03-28 06:58:31 UTC (rev 18717)
@@ -840,7 +840,7 @@
 
     ## special case:
     ## www.test.livejournal.com --(redirect)--> test.livejournal.com
-    if ($host =~ /^w{1,4}.([\w\-]{1,15})\.\Q$LJ::USER_DOMAIN\E$/) {
+    if ($host =~ /^w{1,4}\.([\w\-]{1,15})\.\Q$LJ::USER_DOMAIN\E$/) {
         return redir("http://$1.$LJ::USER_DOMAIN$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