Skip to content
Snippets Groups Projects
Commit 3e482653 authored by GrayFix's avatar GrayFix
Browse files

Update Application.php


Fix corruption for logging internal path with multibyte characters in file preview event

Signed-off-by: default avatarGrayFix <grayfix@gmail.com>
parent 8056bbea
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,7 @@ class Application extends App { ...@@ -183,7 +183,7 @@ class Application extends App {
/** @var File $file */ /** @var File $file */
$file = $event->getSubject(); $file = $event->getSubject();
$fileActions->preview([ $fileActions->preview([
'path' => substr($file->getInternalPath(), 5), 'path' => mb_substr($file->getInternalPath(), 5),
'width' => $event->getArguments()['width'], 'width' => $event->getArguments()['width'],
'height' => $event->getArguments()['height'], 'height' => $event->getArguments()['height'],
'crop' => $event->getArguments()['crop'], 'crop' => $event->getArguments()['crop'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment