add clear
This commit is contained in:
@@ -256,11 +256,8 @@ class HttpClient
|
|||||||
*/
|
*/
|
||||||
private function parseUrlHost(&$url)
|
private function parseUrlHost(&$url)
|
||||||
{
|
{
|
||||||
if (!empty($this->host)) {
|
if (!$this->isHttps($url) && !$this->isHttp($url)) {
|
||||||
$url = $this->host . '/' . ltrim($url, '/');
|
$url = $this->host . '/' . $url;
|
||||||
}
|
|
||||||
if (strpos($url, 'http') === false) {
|
|
||||||
$url = 'https://' . $url;
|
|
||||||
}
|
}
|
||||||
$host = $this->cutRequestUrl($url);
|
$host = $this->cutRequestUrl($url);
|
||||||
if ($this->checkIsIp($host)) {
|
if ($this->checkIsIp($host)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user