vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16417: LJSV-1014: handle directories with index...

Committer: vsukhanov
LJSV-1014: handle directories with index.html
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2010-03-22 10:47:21 UTC (rev 16416)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2010-03-22 11:12:14 UTC (rev 16417)
@@ -989,11 +989,18 @@
                 return redir("$LJ::SITEROOT$uri/");
             }
 
+            # index.bml
             my $new_uri  = $uri . "index.bml";
             my $bml_file = "$ENV{LJHOME}/htdocs/" . $uri . "index.bml";
             if (-e $bml_file) {
                 LJ::Request->uri($new_uri);
                 return $bml_handler->($bml_file);
+            } 
+
+            # index.html
+            my $html_file = "$ENV{LJHOME}/htdocs/" . $uri . "index.html";
+            if (-e $html_file){
+                return redir($uri . "index.html");
             }
         }
     }

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