From 7c430a8afcf4645190fa66bea326103f45d26e0d Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 31 May 2023 19:06:42 -0700 Subject: fix(trashbin): Truncate long filenames Signed-off-by: Christopher Ng --- apps/files_trashbin/lib/Command/RestoreAllFiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_trashbin/lib/Command') 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 $filename originally deleted at $humanTime "); - $file = $filename . '.d' . $timestamp; + $file = Trashbin::getTrashFilename($filename, $timestamp); $location = Trashbin::getLocation($uid, $filename, (string) $timestamp); if ($location === '.') { $location = ''; -- cgit v1.2.3