diff index.php @ 7:c4046c7e1f5a

Missing one part when removing current_dir.
author edogawaconan <me@myconan.net>
date Tue, 21 Oct 2014 21:46:37 +0900
parents 8df269a2efd8
children ac946673f830
line wrap: on
line diff
--- a/index.php	Tue Oct 21 21:44:36 2014 +0900
+++ b/index.php	Tue Oct 21 21:46:37 2014 +0900
@@ -22,7 +22,7 @@
 
   if (realpath($root . $path) === false) {
     header("HTTP/1.0 404 Not Found");
-  } elseif (substr($current_dir, -1) !== "/") {
+  } elseif (substr($path, -1) !== "/") {
     header("Location: " . $path . "/", false, 301);
   }