From b50084099be9571bb380fa748342e98b9b82fa97 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 14 Jun 2017 16:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/response/Redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/response/Redirect.php b/library/think/response/Redirect.php index 59f803a9..f45b0e1c 100644 --- a/library/think/response/Redirect.php +++ b/library/think/response/Redirect.php @@ -67,7 +67,7 @@ class Redirect extends Response */ public function getTargetUrl() { - return Url::build($this->data, $this->params); + return strpos($this->data, '://') ? $this->data : Url::build($this->data, $this->params); } public function params($params = [])