Skip to content

Commit

Permalink
修正router
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 23, 2017
1 parent d9317ee commit 18f1cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// +----------------------------------------------------------------------
// $Id$

if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) {
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
return false;
} else {
require __DIR__ . "/index.php";
Expand Down

0 comments on commit 18f1cf5

Please sign in to comment.