[stable12] Use realpath to obtain the webroot
Use realpath to obtain the webroot - backport Signed-off-by: Sebastian Kostka sebastian.kostka@gmail.com
This commit is contained in:
parent
00256ee18e
commit
f0753cb56d
|
@ -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
|
||||
*
|
||||
|
|
|
@ -125,7 +125,7 @@ abstract class ResourceLocator {
|
|||
}
|
||||
|
||||
if (!$webRoot) {
|
||||
$tmpRoot = $root;
|
||||
$tmpRoot = realpath($root);
|
||||
/*
|
||||
* traverse the potential web roots upwards in the path
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue