X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/eccaf81eef4c1528875503aa0cdbea130d755c5a..ce54c0c57e9b32a56d24699a3a870fef4b25ddb7:/page.php diff --git a/page.php b/page.php index 0707426..8979e62 100644 --- a/page.php +++ b/page.php @@ -137,7 +137,7 @@ $staticpage = NULL; if (file_exists("$Page$Args.html")) { $staticpage = "$Page$Args.html"; if (is_link($staticpage)) { - $target = readlink($staticpage); + $target = preg_replace('/\.html$/', '', readlink($staticpage)); header("HTTP/1.1 302 Shorthand"); header("Location: $target"); exit;