madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22903: LJSV-2274: /data/customview returns Erro...

Committer: sbelyaev
LJSV-2274: /data/customview returns Error No Such User
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2012-09-17 11:12:04 UTC (rev 22902)
+++ trunk/cgi-bin/LJ/Session.pm	2012-09-17 11:18:35 UTC (rev 22903)
@@ -547,7 +547,7 @@
     return wantarray ? ( '__external', "") : '__external' unless
         $host =~ m!^([\w\-\.]{1,50})\.\Q$LJ::USER_DOMAIN\E$!;
 
-    my $subdomain = lc($host);
+    my $subdomain = $1 || lc($host);
 
     if ($LJ::SUBDOMAIN_FUNCTION{$subdomain} eq "journal") {
         return undef unless $path =~ m!^/(\w{1,15})\b!;

Tags: livejournal, madeon, pm, sbelyaev
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