@@ -228,7 +228,7 @@ |
||
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 ); |
@@ -134,7 +134,7 @@ |
||
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 ); |