From 274666f7c5e7065696d79c9ce472fbf51859c774 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 14 Jun 2017 16:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bredirect?= 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 f2002779..59f803a9 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 (strpos($this->data, '://') || 0 === strpos($this->data, '/')) ? $this->data : Url::build($this->data, $this->params); + return Url::build($this->data, $this->params); } public function params($params = [])