JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
work with .htm suffix
authorJason Woofenden <jason@jasonwoof.com>
Sun, 15 Jul 2012 20:21:32 +0000 (16:21 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sun, 15 Jul 2012 20:21:32 +0000 (16:21 -0400)
run.php

diff --git a/run.php b/run.php
index 32f78e1..a310e3f 100644 (file)
--- a/run.php
+++ b/run.php
@@ -72,7 +72,7 @@ function run_php($dest = false) {
        } else { # no dest arg
                $basename = $_SERVER['REDIRECT_URL'];
                $basename = ereg_replace('.*/', '', $basename);
-               $basename = ereg_replace('\.html$', '', $basename);
+               $basename = ereg_replace('\.html?$', '', $basename);
                if($basename == '') {
                        $basename = 'index';
                }