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 8012fe4 commit 3e2c401Copy full SHA for 3e2c401
app/code/Magento/Theme/Model/Wysiwyg/Storage.php
@@ -341,7 +341,10 @@ public function deleteDirectory($path)
341
{
342
$rootCmp = rtrim($this->_helper->getStorageRoot(), '/');
343
$pathCmp = rtrim($path, '/');
344
- $absolutePath = $this->filesystemDriver->getRealPathSafety($this->mediaWriteDirectory->getAbsolutePath($path));
+ $absolutePath = rtrim(
345
+ $this->filesystemDriver->getRealPathSafety($this->mediaWriteDirectory->getAbsolutePath($path)),
346
+ '/'
347
+ );
348
349
if ($rootCmp == $pathCmp || $rootCmp === $absolutePath) {
350
throw new \Magento\Framework\Exception\LocalizedException(
0 commit comments