Skip to content

Commit ff6a530

Browse files
authored
fix slashes
Quote from https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#onlyMimes When I transfer data mimes as "image/png" If JSON_UNESCAPED_SLASHES is not used, the resulting array will be ["image\/png"] resulting in failure to read any matching expansion files.
1 parent f3fbea4 commit ff6a530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/standalonepopup.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
soundPath: '{{ asset($dir.'/sounds') }}',
2020
dialog: {width: 900, modal: true, title: 'Select a file'},
2121
resizable: false,
22-
onlyMimes: @json(unserialize(urldecode(request('mimes')))),
22+
onlyMimes: @json( unserialize(urldecode(request('mimes'))), JSON_UNESCAPED_SLASHES),
2323
commandsOptions: {
2424
getfile: {
2525
multiple: {{ request('multiple') ? 'true' : 'false' }},

0 commit comments

Comments
 (0)