Skip to content

Commit

Permalink
Merge pull request #5507 from derkostka/stable12
Browse files Browse the repository at this point in the history
[stable12] Use realpath to obtain the webroot
  • Loading branch information
MorrisJobke authored Jun 23, 2017
2 parents cb9a6a8 + f0753cb commit 8550fdf
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 8550fdf

Please sign in to comment.