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 3e392fe commit d2a67b5
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 {
if (!isset($_SERVER['PATH_INFO'])) {
Expand Down

0 comments on commit d2a67b5

Please sign in to comment.