mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正Request类的baseUrl方法 修正Hook类的警告错误
This commit is contained in:
@@ -240,7 +240,8 @@ class Request
|
||||
$this->baseUrl = $url;
|
||||
return;
|
||||
} elseif (!$this->baseUrl) {
|
||||
$this->baseUrl = rtrim($this->url(), '?' . $this->query());
|
||||
$str = $this->url();
|
||||
$this->baseUrl = strpos($str, '?') ? strstr($str, '?', true) : $str;
|
||||
}
|
||||
return true === $url ? $this->domain() . $this->baseUrl : $this->baseUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user