diff options
author | GrayFix <grayfix@gmail.com> | 2020-01-21 15:22:10 +0500 |
---|---|---|
committer | GrayFix <grayfix@gmail.com> | 2020-01-22 13:21:57 +0500 |
commit | 3e482653b93728021474b8f7f127d81e26598fe8 (patch) | |
tree | 6924db5508844cde4ec47929d4c011d6dc4f545f /apps/admin_audit | |
parent | 8056bbeae36858fd8e88c84bcf6d26117be72788 (diff) | |
download | nextcloud-server-3e482653b93728021474b8f7f127d81e26598fe8.tar.gz nextcloud-server-3e482653b93728021474b8f7f127d81e26598fe8.zip |
Update Application.php
Fix corruption for logging internal path with multibyte characters in file preview event
Signed-off-by: GrayFix <grayfix@gmail.com>
Diffstat (limited to 'apps/admin_audit')
-rw-r--r-- | apps/admin_audit/lib/AppInfo/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/admin_audit/lib/AppInfo/Application.php b/apps/admin_audit/lib/AppInfo/Application.php index ebcb732abde..44d713f7df0 100644 --- a/apps/admin_audit/lib/AppInfo/Application.php +++ b/apps/admin_audit/lib/AppInfo/Application.php @@ -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'], |