Skip to content

Commit 6a1c499

Browse files
authored
Merge pull request #5252 from derkostka/master
Use realpath to obtain the webroot.
2 parents 146c699 + c7ce42e commit 6a1c499

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Template/CSSResourceLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function append($root, $file, $webRoot = null, $throw = true, $scss = fal
117117
parent::append($root, $file, $webRoot, $throw);
118118
} else {
119119
if (!$webRoot) {
120-
$tmpRoot = $root;
120+
$tmpRoot = realpath($root);
121121
/*
122122
* traverse the potential web roots upwards in the path
123123
*

lib/private/Template/ResourceLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function append($root, $file, $webRoot = null, $throw = true) {
125125
}
126126

127127
if (!$webRoot) {
128-
$tmpRoot = $root;
128+
$tmpRoot = realpath($root);
129129
/*
130130
* traverse the potential web roots upwards in the path
131131
*

0 commit comments

Comments
 (0)