mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
改进
This commit is contained in:
@@ -289,7 +289,7 @@ class Request
|
||||
return;
|
||||
} elseif (!$this->root) {
|
||||
$file = $this->baseFile();
|
||||
if (0 !== strpos($this->url(), $file)) {
|
||||
if ($file && 0 !== strpos($this->url(), $file)) {
|
||||
$file = str_replace('\\', '/', dirname($file));
|
||||
}
|
||||
$this->root = rtrim($file, '/');
|
||||
|
||||
Reference in New Issue
Block a user