Skip to content

Commit 717a551

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(operation): Fix folder variable when handling versions in trashbin
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 9d9ff21 commit 717a551

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Operation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function translatePath(IMountPoint $mountPoint, IStorage $storage, str
162162
// 'versions', 'path/to/file.txt'
163163
$segments = explode('/', $innerPath, 2);
164164
if (isset($segments[1])) {
165-
$innerPath = $segments[1];
165+
[$folder, $innerPath] = $segments;
166166
}
167167

168168
if (preg_match('/.+\.d\d{10}$/', basename($innerPath))) {

0 commit comments

Comments
 (0)