File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ protected function doTestReachableAdminRoutes($admin)
104
104
continue ;
105
105
}
106
106
107
+ // batch routes from new admin integration would need POST request
108
+ if (strpos ($ route ->getPath (), 'batch ' )) {
109
+ continue ;
110
+ }
111
+
107
112
// do not test POST routes
108
113
if (isset ($ requirements ['_method ' ])) {
109
114
if ($ requirements ['_method ' ] != 'GET ' ) {
Original file line number Diff line number Diff line change 14
14
exit ('This script cannot be run from the CLI. Run it from a browser. ' );
15
15
}
16
16
17
- if (!in_array (@$ _SERVER ['REMOTE_ADDR ' ], [
17
+ if (!in_array (@$ _SERVER ['REMOTE_ADDR ' ], array (
18
18
'127.0.0.1 ' ,
19
19
'::1 ' ,
20
- ] )) {
20
+ ) )) {
21
21
header ('HTTP/1.0 403 Forbidden ' );
22
22
exit ('This script is only accessible from localhost. ' );
23
23
}
You can’t perform that action at this time.
0 commit comments