Browse Source

Update Application.php

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

Signed-off-by: GrayFix <grayfix@gmail.com>
tags/v19.0.0beta1
GrayFix 4 years ago
parent
commit
3e482653b9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/admin_audit/lib/AppInfo/Application.php

+ 1
- 1
apps/admin_audit/lib/AppInfo/Application.php View File

@@ -183,7 +183,7 @@ class Application extends App {
/** @var File $file */
$file = $event->getSubject();
$fileActions->preview([
'path' => substr($file->getInternalPath(), 5),
'path' => mb_substr($file->getInternalPath(), 5),
'width' => $event->getArguments()['width'],
'height' => $event->getArguments()['height'],
'crop' => $event->getArguments()['crop'],

Loading…
Cancel
Save