Skip to content

Commit 0b26811

Browse files
MAGETWO-34293: Html minification works incorrectly in Layered Navigation
fix PAT build
1 parent 94ebf33 commit 0b26811

File tree

1 file changed

+3
-0
lines changed
  • lib/internal/Magento/Framework/Filesystem/Driver

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/Filesystem/Driver/File.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,9 @@ public function getRealPath($path)
750750
*/
751751
public function getRealPathSafety($path)
752752
{
753+
if (strpos($path, DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) === false) {
754+
return $path;
755+
}
753756
$pathParts = explode(DIRECTORY_SEPARATOR, $path);
754757
$realPath = [];
755758
foreach ($pathParts as $pathPart) {

0 commit comments

Comments
 (0)