Skip to content

Commit

Permalink
fixed #691
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlvtech authored and liu21st committed Jul 21, 2017
1 parent 7ab81d4 commit 69400b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) {
return false;
} else {
if (!isset($_SERVER['PATH_INFO'])) {
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
}
require __DIR__ . "/index.php";
}

0 comments on commit 69400b6

Please sign in to comment.