This commit is contained in:
thinkphp
2016-05-20 16:30:28 +08:00
parent b67e98ad2b
commit 34c80c1116

View File

@@ -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, '/');