Skip to content

Commit 69400b6

Browse files
ganlvtechliu21st
authored andcommitted
1 parent 7ab81d4 commit 69400b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

public/router.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) {
1414
return false;
1515
} else {
16+
if (!isset($_SERVER['PATH_INFO'])) {
17+
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
18+
}
1619
require __DIR__ . "/index.php";
1720
}

0 commit comments

Comments
 (0)