Skip to content

Commit

Permalink
[TASK] Avoid realpath() on resolving template paths
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Apr 15, 2016
1 parent 41cb134 commit f247066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Utility/PathUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f247066

Please sign in to comment.