summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorGrayFix <grayfix@gmail.com>2020-01-21 15:22:10 +0500
committerGrayFix <grayfix@gmail.com>2020-01-22 13:21:57 +0500
commit3e482653b93728021474b8f7f127d81e26598fe8 (patch)
tree6924db5508844cde4ec47929d4c011d6dc4f545f /apps/admin_audit
parent8056bbeae36858fd8e88c84bcf6d26117be72788 (diff)
downloadnextcloud-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.php2
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'],