File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
class RouterRequest
15
15
{
16
- public static $ validMethods = 'GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH|ANY|AJAX ' ;
16
+ public static $ validMethods = 'GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH|ANY|AJAX|AJAXP ' ;
17
17
18
18
/**
19
19
* method status
@@ -49,6 +49,8 @@ private static function checkMethods($value, $method)
49
49
50
50
if ($ value == 'AJAX ' && isset ($ _SERVER ['HTTP_X_REQUESTED_WITH ' ]) && $ _SERVER ['HTTP_X_REQUESTED_WITH ' ] == 'XMLHttpRequest ' && $ value == $ method )
51
51
$ valid = true ;
52
+ elseif ($ value == 'AJAXP ' && isset ($ _SERVER ['HTTP_X_REQUESTED_WITH ' ]) && $ _SERVER ['HTTP_X_REQUESTED_WITH ' ] == 'XMLHttpRequest ' && $ method == 'POST ' )
53
+ $ valid = true ;
52
54
elseif ( in_array ($ value , explode ('| ' , self ::$ validMethods )) && ($ value == $ method || $ value == 'ANY ' ) )
53
55
$ valid = true ;
54
56
You can’t perform that action at this time.
0 commit comments