Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2 patch level #206

Closed
danielmartinezd opened this issue Apr 13, 2018 · 1 comment
Closed

Magento 2 patch level #206

danielmartinezd opened this issue Apr 13, 2018 · 1 comment

Comments

@danielmartinezd
Copy link

I created a patch to solve a bug form Magento magento/magento2#5872

Patch:

site/vendor/magento/module-media-storage/Model/File/Storage/Request.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site/vendor/magento/module-media-storage/Model/File/Storage/Request.php b/site/vendor/magento/module-media-storage/Model/File/Storage/Request.php
index 6f7e77ff0..a2a02fd97 100644
--- a/site/vendor/magento/module-media-storage/Model/File/Storage/Request.php
+++ b/site/vendor/magento/module-media-storage/Model/File/Storage/Request.php
@@ -21,7 +21,7 @@ class Request
*/
public function __construct(HttpRequest $request)
{

  •    $this->pathInfo = str_replace('..', '', ltrim($request->getPathInfo(), '/'));
    
  •    $this->pathInfo = str_replace('..', '', ltrim($request->getPathInfo(), '/media/'));
    

    }

    /**
    --

When applying the patches
patches/XXX.diff (Bug #1234: Something is wrong)
Could not apply patch! Skipping. The error was: Cannot apply patch patches/XXX.diff

@cweagans
Copy link
Owner

cweagans commented Jun 2, 2018

I don't have any plans for this right now. In 2.x, you'll be able to define your own patch depth on a per-patch basis. See #93 for progress and how/where to help.

@cweagans cweagans closed this as completed Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants