We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcefc59 + fce8b71 commit 020c4e9Copy full SHA for 020c4e9
1 file changed
lib/private/Preview/Storage/LocalPreviewStorage.php
@@ -281,7 +281,7 @@ private function processScanBatch(
281
282
// Move old flat preview to new nested directory format.
283
$dirName = str_replace($this->getPreviewRootFolder(), '', $item['filePath']);
284
- if (preg_match('/[0-9a-e]\/[0-9a-e]\/[0-9a-e]\/[0-9a-e]\/[0-9a-e]\/[0-9a-e]\/[0-9a-e]\/[0-9]+/', $dirName) !== 1) {
+ if (preg_match('/([[:xdigit:]]\/){7}[0-9]+/', $dirName) !== 1) {
285
$previewPath = $this->constructPath($preview);
286
$this->createParentFiles($previewPath);
287
$ok = rename($item['realPath'], $previewPath);
0 commit comments