summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2010-12-09 22:49:34 +0100
committerGreg Aker <greg.aker@ellislab.com>2010-12-09 22:49:34 +0100
commit2fae66e54bac9104acb2236aeffec80d1c794c4d (patch)
tree694e88ffa0f7cb4678ebe725caad33879e228247 /system/core/Input.php
parent081ac9d44dab334c748c0f7e763c97d55fb9bdf1 (diff)
Fix #260 - tightening up the is_ajax_request() method in the Input class. Thanks sophistry for the suggestion
Diffstat (limited to 'system/core/Input.php')
-rw-r--r--system/core/Input.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 6f88b1972..9d8811cdd 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -635,8 +635,7 @@ class CI_Input {
*/
public function is_ajax_request()
{
- $req_source = $this->server('HTTP_X_REQUESTED_WITH');
- return ($req_source == 'XMLHttpRequest') ? TRUE : FALSE;
+ return ($this->server('HTTP_X_REQUESTED_WITH') === 'XMLHttpRequest');
}
}