From 0b26811030e691c997748f755b55d4bd06167b5d Mon Sep 17 00:00:00 2001
From: Andriy Nasinnyk <anasinnyk@ebay.com>
Date: Sun, 15 Mar 2015 07:23:28 +0200
Subject: [PATCH] MAGETWO-34293: Html minification works incorrectly in Layered
 Navigation

fix PAT build
---
 lib/internal/Magento/Framework/Filesystem/Driver/File.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/internal/Magento/Framework/Filesystem/Driver/File.php b/lib/internal/Magento/Framework/Filesystem/Driver/File.php
index c1f521b2986..e053ca69564 100644
--- a/lib/internal/Magento/Framework/Filesystem/Driver/File.php
+++ b/lib/internal/Magento/Framework/Filesystem/Driver/File.php
@@ -750,6 +750,9 @@ class File implements DriverInterface
      */
     public function getRealPathSafety($path)
     {
+        if (strpos($path, DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) === false) {
+            return $path;
+        }
         $pathParts = explode(DIRECTORY_SEPARATOR, $path);
         $realPath = [];
         foreach ($pathParts as $pathPart) {
-- 
GitLab