Skip to content

Commit eaf688c

Browse files
committed
B2B-1876: New directories in pub/media do not get synced back to local filesystem from S3 Remote Storage
1 parent 72b2cc6 commit eaf688c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ private function getAllowedPathPattern()
999999
$or = '';
10001000
foreach($mediaGalleryImageFolders as $folder) {
10011001
$folderPattern = str_replace('/', '[\/]+', $folder);
1002-
$regExp .= $or . $folderPattern . '\b(?!-)(?:\/?[^\/]+)*\/?$';
1002+
$regExp .= $or . $folderPattern . '\b(?!-)(?:\/?[a-zA-Z0-9\-\_]+)*\/?$';
10031003
$or = '|';
10041004
}
10051005
$regExp .= ')/';

0 commit comments

Comments
 (0)