We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0014873 commit 662f981Copy full SHA for 662f981
src/Router/RouterRequest.php
@@ -47,7 +47,7 @@ private static function checkMethods($value, $method)
47
{
48
$valid = false;
49
50
- if($value == 'AJAX' && !is_null($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' && $value == $method)
+ if($value == 'AJAX' && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' && $value == $method)
51
$valid = true;
52
elseif ( in_array($value, explode('|', self::$validMethods)) && ($value == $method || $value == 'ANY') )
53
0 commit comments