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 1313
1414class RouterRequest
1515{
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 ' ;
1717
1818 /**
1919 * method status
@@ -49,6 +49,8 @@ private static function checkMethods($value, $method)
4949
5050 if ($ value == 'AJAX ' && isset ($ _SERVER ['HTTP_X_REQUESTED_WITH ' ]) && $ _SERVER ['HTTP_X_REQUESTED_WITH ' ] == 'XMLHttpRequest ' && $ value == $ method )
5151 $ valid = true ;
52+ elseif ($ value == 'AJAXP ' && isset ($ _SERVER ['HTTP_X_REQUESTED_WITH ' ]) && $ _SERVER ['HTTP_X_REQUESTED_WITH ' ] == 'XMLHttpRequest ' && $ method == 'POST ' )
53+ $ valid = true ;
5254 elseif ( in_array ($ value , explode ('| ' , self ::$ validMethods )) && ($ value == $ method || $ value == 'ANY ' ) )
5355 $ valid = true ;
5456
You can’t perform that action at this time.
0 commit comments