From 41901fe7da3240aa7560d6378501aa3502786ad7 Mon Sep 17 00:00:00 2001 From: Sven Coeck Date: Tue, 5 Jun 2018 14:21:57 +0200 Subject: [PATCH 1/2] Add fix for issue https://github.com/magento/magento2/issues/13929 --- ...images-cant-be-uploaded-in-symlinked-folders.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch diff --git a/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch b/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch new file mode 100644 index 0000000..787b650 --- /dev/null +++ b/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch @@ -0,0 +1,11 @@ +--- /vendor/magento/framework/App/Filesystem/DirectoryResolver.php 2018-02-21 01:25:30.000000000 +0000 ++++ /vendor/magento/framework/App/Filesystem/DirectoryResolver.php 2018-06-02 17:04:53.000000000 +0000 +@@ -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; + } From babdf9ce63627e430a8ebb7fc7bfe72d67891ec8 Mon Sep 17 00:00:00 2001 From: svencoeck Date: Wed, 6 Jun 2018 12:02:31 +0200 Subject: [PATCH 2/2] Fix wrong path in patch Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch --- ...x-13929-images-cant-be-uploaded-in-symlinked-folders.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch b/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch index 787b650..250cbb5 100644 --- a/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch +++ b/Patch_Magento_Framework-fix-13929-images-cant-be-uploaded-in-symlinked-folders.patch @@ -1,5 +1,5 @@ ---- /vendor/magento/framework/App/Filesystem/DirectoryResolver.php 2018-02-21 01:25:30.000000000 +0000 -+++ /vendor/magento/framework/App/Filesystem/DirectoryResolver.php 2018-06-02 17:04:53.000000000 +0000 +--- App/Filesystem/DirectoryResolver.php 2018-02-21 01:25:30.000000000 +0000 ++++ App/Filesystem/DirectoryResolver.php 2018-06-02 17:04:53.000000000 +0000 @@ -39,7 +39,7 @@ public function validatePath($path, $directoryConfig = DirectoryList::MEDIA) {