Skip to content

Commit f9e9517

Browse files
committed
fix: empty paths for rewrite.php
1 parent 0b24532 commit f9e9517

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

system/Commands/Server/rewrite.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
return;
2525
}
2626

27-
$uri = urldecode(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
27+
$uri = urldecode(
28+
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
29+
);
2830

2931
// All request handle by index.php file.
3032
$_SERVER['SCRIPT_NAME'] = '/index.php';

0 commit comments

Comments
 (0)