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.
1 parent eedf671 commit 68a75b2Copy full SHA for 68a75b2
app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php
@@ -385,6 +385,10 @@ public function getDirsCollection($path)
385
*/
386
public function getFilesCollection($path, $type = null)
387
{
388
+ if (!($this->isDirectoryAllowed($path))) {
389
+ return $this->getCollection(null);
390
+ }
391
+
392
if ($this->_coreFileStorageDb->checkDbUsage()) {
393
$files = $this->_storageDatabaseFactory->create()->getDirectoryFiles($path);
394
0 commit comments