holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22034: LJSUP-12292: Incorrect redirect for "_"

Committer: akanashin
LJSUP-12292: Incorrect redirect for "_"
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-05-23 09:23:14 UTC (rev 22033)
+++ trunk/cgi-bin/LJ/User.pm	2012-05-23 10:49:37 UTC (rev 22034)
@@ -310,6 +310,7 @@
 
     $host = lc($host);
     $host =~ s/^www\.//;
+    $host =~ s/_/-/g if ($host =~ /(.*?)\.?(?:xn--80adlbbiisqhy9a|xn--f1aa)\.xn--p1ai/);
 
     if (my $user = $LJ::DOMAIN_JOURNALS_REVERSE{$host}) {
         return LJ::load_user($user);

Tags: akanashin, holyandrew, 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