Skip to content

Commit

Permalink
Add patch for magento2 issue 13929
Browse files Browse the repository at this point in the history
  • Loading branch information
dank00 committed Jun 27, 2018
1 parent a68d066 commit 8b5fcd6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
]
}
},
"magento/framework": {
"Allow for uploads to media directory if it is a symlink https://github.com/magento/magento2/issues/13929": {
"source" : "patches/Magento_Framework/13929_2.2.3_directory_resolver_composer_v1.patch",
"version" : [
"100.2.*"
]
}
},
"magento/module-braintree": {
"Only loop through braintree configs if it is an array": {
"source" : "patches/Magento_Braintree/magento2-issue-12298.patch",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- App/Filesystem/DirectoryResolver.php (date 1521531005000)
+++ App/Filesystem/DirectoryResolver.php (date 1521561205000)
@@ -39,7 +39,7 @@
public function validatePath($path, $directoryConfig = DirectoryList::MEDIA)
{
$realPath = realpath($path);
- $root = $this->directoryList->getPath($directoryConfig);
+ $root = realpath($this->directoryList->getPath($directoryConfig));

return strpos($realPath, $root) === 0;
}

0 comments on commit 8b5fcd6

Please sign in to comment.