Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21667: LJSUP-11749 (some static files get serve...

Committer: ailyin
LJSUP-11749 (some static files get served with wrong content type)
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-04-06 09:12:10 UTC (rev 21666)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-04-06 10:42:22 UTC (rev 21667)
@@ -557,7 +557,11 @@
             LJ::Request->filename($file);
             $LJ::IMGPREFIX = '/img';
             $LJ::STATPREFIX = '/stc';
-            return $bml_handler->($file);
+            if ( $file =~ /[.]bml$/ ) {
+                return $bml_handler->($file);
+            } else {
+                return LJ::Request::OK;
+            }
         }
         else {
             return LJ::Request::FORBIDDEN;

Tags: ailyin, andy, 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