holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11996: LJSUP-12294: Incorrect page with error

Committer: akanashin
LJSUP-12294: Incorrect page with error
U   trunk/cgi-bin/LJ/Widget/ErrorPage.pm
Modified: trunk/cgi-bin/LJ/Widget/ErrorPage.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ErrorPage.pm	2012-05-23 09:35:43 UTC (rev 11995)
+++ trunk/cgi-bin/LJ/Widget/ErrorPage.pm	2012-05-23 10:56:05 UTC (rev 11996)
@@ -135,6 +135,7 @@
         my %args             = @_;
         my $host = LJ::Request->header_in('Host');
         $host =~ s/xn--//g;
+        $host =~ s/^www\.//;
         $host =~ s/\.(?:(?:80adlbbiisqhy9a|f1aa)\.p1ai)//;
         $host = Encode::encode_utf8(LJ::Pay::Payment::PayItem::DomainRU::decode_punycode($host)) || '';
         return {

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