From 8d65e16047aed71459bfc8a6328e4b7bf968db1b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 14 Nov 2016 22:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Binput=E5=8A=A9=E6=89=8B?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.php b/helper.php index b81970c7..02d8761a 100644 --- a/helper.php +++ b/helper.php @@ -125,7 +125,7 @@ if (!function_exists('input')) { } if ($pos = strpos($key, '.')) { // 指定参数来源 - list($method, $key) = explode('.', $key); + list($method, $key) = explode('.', $key, 2); if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete', 'param', 'request', 'session', 'cookie', 'server', 'env', 'path', 'file'])) { $key = $method . '.' . $key; $method = 'param';