Skip to content

Commit cb1d5a3

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-36933' into sprint-54-bf
2 parents 8b73294 + 9ab589f commit cb1d5a3

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/MediaStorage/Model/File/Storage

1 file changed

+3
-1
lines changed

app/code/Magento/MediaStorage/Model/File/Storage/Request.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class Request
2929
*/
3030
public function __construct($workingDir, HttpRequest $request = null)
3131
{
32-
$request = $request ?: new HttpRequest();
32+
$request = $request ?: new HttpRequest(
33+
new \Magento\Framework\Stdlib\Cookie\PhpCookieReader()
34+
);
3335
$this->_pathInfo = str_replace('..', '', ltrim($request->getPathInfo(), '/'));
3436
$this->_filePath = $workingDir . '/' . $this->_pathInfo;
3537
}

0 commit comments

Comments
 (0)