Skip to content

Commit

Permalink
Merge pull request #5252 from derkostka/master
Browse files Browse the repository at this point in the history
Use realpath to obtain the webroot.
  • Loading branch information
MorrisJobke authored Jun 21, 2017
2 parents 146c699 + c7ce42e commit 6a1c499
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 6a1c499

Please sign in to comment.