Skip to content

Commit 4bb4b24

Browse files
committed
wip
1 parent a73976f commit 4bb4b24

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

resources/views/standalonepopup.blade.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
91
<!DOCTYPE html>
102
<html lang="{{ app()->getLocale() }}">
113
<head>
@@ -40,7 +32,7 @@
4032
url: '{{ route("elfinder.connector") }}', // connector URL
4133
soundPath: '{{ Basset::getUrl(base_path("vendor/studio-42/elfinder/sounds")) }}',
4234
resizable: false,
43-
onlyMimes: {!! $mimes !!},
35+
onlyMimes: @json(unserialize(urldecode(request('mimes'))), JSON_UNESCAPED_SLASHES),
4436
commandsOptions: {
4537
getfile: {
4638
multiple: {{ request('multiple') ? 'true' : 'false' }},

0 commit comments

Comments
 (0)