diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php index 0150449ac9f7e..32dabb48c0d8c 100644 --- a/lib/private/Template/CSSResourceLocator.php +++ b/lib/private/Template/CSSResourceLocator.php @@ -117,7 +117,7 @@ public function append($root, $file, $webRoot = null, $throw = true, $scss = fal parent::append($root, $file, $webRoot, $throw); } else { if (!$webRoot) { - $tmpRoot = $root; + $tmpRoot = realpath($root); /* * traverse the potential web roots upwards in the path * diff --git a/lib/private/Template/ResourceLocator.php b/lib/private/Template/ResourceLocator.php index 4e733d28f266d..f721906e12ba3 100755 --- a/lib/private/Template/ResourceLocator.php +++ b/lib/private/Template/ResourceLocator.php @@ -125,7 +125,7 @@ protected function append($root, $file, $webRoot = null, $throw = true) { } if (!$webRoot) { - $tmpRoot = $root; + $tmpRoot = realpath($root); /* * traverse the potential web roots upwards in the path *