From f0753cb56d3b348aa16ac4481d32e9531a9958fb Mon Sep 17 00:00:00 2001 From: Sebastian Kostka Date: Thu, 22 Jun 2017 08:37:11 +0200 Subject: [PATCH] [stable12] Use realpath to obtain the webroot Use realpath to obtain the webroot - backport Signed-off-by: Sebastian Kostka sebastian.kostka@gmail.com --- lib/private/Template/CSSResourceLocator.php | 2 +- lib/private/Template/ResourceLocator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php index 0150449ac9..32dabb48c0 100644 --- a/lib/private/Template/CSSResourceLocator.php +++ b/lib/private/Template/CSSResourceLocator.php @@ -117,7 +117,7 @@ class CSSResourceLocator extends ResourceLocator { 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 4e733d28f2..f721906e12 100755 --- a/lib/private/Template/ResourceLocator.php +++ b/lib/private/Template/ResourceLocator.php @@ -125,7 +125,7 @@ abstract class ResourceLocator { } if (!$webRoot) { - $tmpRoot = $root; + $tmpRoot = realpath($root); /* * traverse the potential web roots upwards in the path *