We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a73976f commit 4bb4b24Copy full SHA for 4bb4b24
1 file changed
resources/views/standalonepopup.blade.php
@@ -1,11 +1,3 @@
1
-@php
2
-try {
3
- $mimes = json_encode(Crypt::decrypt(urldecode(request('mimes'))), JSON_UNESCAPED_SLASHES);
4
-} catch (\Exception $e) {
5
- Log::error('Someone attempted to tamper with mime types in elfinder popup. The attempt was blocked.');
6
- $mimes = json_encode([]);
7
-}
8
-@endphp
9
<!DOCTYPE html>
10
<html lang="{{ app()->getLocale() }}">
11
<head>
@@ -40,7 +32,7 @@
40
32
url: '{{ route("elfinder.connector") }}', // connector URL
41
33
soundPath: '{{ Basset::getUrl(base_path("vendor/studio-42/elfinder/sounds")) }}',
42
34
resizable: false,
43
- onlyMimes: {!! $mimes !!},
35
+ onlyMimes: @json(unserialize(urldecode(request('mimes'))), JSON_UNESCAPED_SLASHES),
44
36
commandsOptions: {
45
37
getfile: {
46
38
multiple: {{ request('multiple') ? 'true' : 'false' }},
0 commit comments