Skip to content

Commit fe3e9a0

Browse files
committed
MAGETWO-87986: Media Folder Structure for CMS Images
Use URL-safe base64 decode
1 parent 372a3d9 commit fe3e9a0

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getTreeCurrentPath()
129129
$treePath = ['root'];
130130

131131
if ($idEncodedPath = $this->getRequest()->getParam('current_tree_path')) {
132-
$path = base64_decode($idEncodedPath);
132+
$path = $this->_cmsWysiwygImages->idDecode($idEncodedPath);
133133
} else {
134134
$path = $this->_coreRegistry->registry('storage')->getSession()->getCurrentPath();
135135
}

0 commit comments

Comments
 (0)