Skip to content

Commit 20bf889

Browse files
author
Hwashiang Yu
committed
MC-31362: Media folder update
- Updated storage path check - Removed extra test
1 parent 14320e8 commit 20bf889

File tree

2 files changed

+1
-173
lines changed

2 files changed

+1
-173
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
@@ -765,7 +765,7 @@ public function getCmsWysiwygImages()
765765
protected function _validatePath($path)
766766
{
767767
$root = $this->_sanitizePath($this->_cmsWysiwygImages->getStorageRoot());
768-
$realPath = realpath($path);
768+
$realPath = $this->_sanitizePath($path);
769769
if ($root == $realPath) {
770770
throw new \Magento\Framework\Exception\LocalizedException(
771771
__('We can\'t delete root directory %1 right now.', $path)

app/code/Magento/Theme/Test/Unit/Model/Design/Backend/ImageTest.php

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)