Skip to content

Commit

Permalink
[stable12] Use realpath to obtain the webroot
Browse files Browse the repository at this point in the history
Use realpath to obtain the webroot - backport
Signed-off-by: Sebastian Kostka [email protected]
  • Loading branch information
derkostka committed Jun 22, 2017
1 parent 00256ee commit f0753cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/private/Template/CSSResourceLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Template/ResourceLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit f0753cb

Please sign in to comment.