From 90d9aaa65e1d4e2eb1a522919fafcd1c7b1635f8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 17 Aug 2016 13:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3request=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Request.php b/library/think/Request.php index dc5808d4..80546d89 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -1172,7 +1172,7 @@ class Request public function isAjax() { $value = $this->server('HTTP_X_REQUESTED_WITH'); - return (!is_null($value) && strtolower($vlaue) == 'xmlhttprequest') ? true : false; + return (!is_null($value) && strtolower($value) == 'xmlhttprequest') ? true : false; } /**