aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Command
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-05-31 19:06:42 -0700
committerChristopher Ng <chrng8@gmail.com>2023-05-31 19:06:42 -0700
commit7c430a8afcf4645190fa66bea326103f45d26e0d (patch)
treef5a33f382efb2f9ea23c43a1609ff6e65adb3694 /apps/files_trashbin/lib/Command
parentaaa226df1ced518d412e87d5e2aa438f5bae167d (diff)
downloadnextcloud-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.php2
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 = '';