Passed
Push — master ( 16ec83...ede766 )
by Aimeos
04:12
created
src/Aimeos/Shop/Controller/JqadmController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
 	{
229 229
 		// allow requests only if they are from within the admin backend
230 230
 		$cnt = count( explode( '/', request()->route()->getPrefix() ) ) - 1;
231
-		$base = request()->root() . '/' . join( '/', array_slice( request()->segments(), 0 , $cnt ) );
231
+		$base = request()->root() . '/' . join( '/', array_slice( request()->segments(), 0, $cnt ) );
232 232
 
233 233
 		if( strncmp( url()->previous(), $base, strlen( $base ) ) ) {
234 234
 			abort( 403 );
Please login to merge, or discard this patch.
src/Aimeos/Shop/Controller/JsonadmController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 	{
135 135
 		// allow requests only if they are from within the admin backend
136 136
 		$cnt = count( explode( '/', request()->route()->getPrefix() ) ) - 1;
137
-		$base = request()->root() . '/' . join( '/', array_slice( request()->segments(), 0 , $cnt ) );
137
+		$base = request()->root() . '/' . join( '/', array_slice( request()->segments(), 0, $cnt ) );
138 138
 
139 139
 		if( strncmp( url()->previous(), $base, strlen( $base ) ) ) {
140 140
 			abort( 403 );
Please login to merge, or discard this patch.