diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-05-31 19:06:42 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-05-31 19:06:42 -0700 |
commit | 7c430a8afcf4645190fa66bea326103f45d26e0d (patch) | |
tree | f5a33f382efb2f9ea23c43a1609ff6e65adb3694 /apps/files_trashbin/lib/Command | |
parent | aaa226df1ced518d412e87d5e2aa438f5bae167d (diff) | |
download | nextcloud-server-7c430a8afcf4645190fa66bea326103f45d26e0d.tar.gz nextcloud-server-7c430a8afcf4645190fa66bea326103f45d26e0d.zip |
fix(trashbin): Truncate long filenames
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_trashbin/lib/Command')
-rw-r--r-- | apps/files_trashbin/lib/Command/RestoreAllFiles.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Command/RestoreAllFiles.php b/apps/files_trashbin/lib/Command/RestoreAllFiles.php index 748ead798d8..bff116c4ec4 100644 --- a/apps/files_trashbin/lib/Command/RestoreAllFiles.php +++ b/apps/files_trashbin/lib/Command/RestoreAllFiles.php @@ -146,7 +146,7 @@ class RestoreAllFiles extends Base { $timestamp = $trashFile->getMtime(); $humanTime = $this->l10n->l('datetime', $timestamp); $output->write("File <info>$filename</info> originally deleted at <info>$humanTime</info> "); - $file = $filename . '.d' . $timestamp; + $file = Trashbin::getTrashFilename($filename, $timestamp); $location = Trashbin::getLocation($uid, $filename, (string) $timestamp); if ($location === '.') { $location = ''; |