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