From f24706612cd233de0d97263eb65782ddc7bf43f0 Mon Sep 17 00:00:00 2001 From: Claus Due Date: Fri, 15 Apr 2016 03:42:23 +0200 Subject: [PATCH] [TASK] Avoid realpath() on resolving template paths --- Classes/Utility/PathUtility.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Utility/PathUtility.php b/Classes/Utility/PathUtility.php index b30fcd0f1..ec627a6b1 100644 --- a/Classes/Utility/PathUtility.php +++ b/Classes/Utility/PathUtility.php @@ -34,8 +34,8 @@ class PathUtility { public static function translatePath($path) { if (is_array($path) == FALSE) { $path = (0 === strpos($path, '/') ? $path : GeneralUtility::getFileAbsFileName($path)); - if (is_dir($path)) { - $path = realpath($path) . '/'; + if (is_dir($path) && substr($path, -1) !== '/') { + $path = $path . '/'; } $path = GeneralUtility::fixWindowsFilePath($path); } else {