]> source.dussan.org Git - nextcloud-server.git/commitdiff
[stable12] Use realpath to obtain the webroot 5507/head
authorSebastian Kostka <sebastian.kostka@gmail.com>
Thu, 22 Jun 2017 06:37:11 +0000 (08:37 +0200)
committerSebastian Kostka <sebastian.kostka@gmail.com>
Thu, 22 Jun 2017 06:37:11 +0000 (08:37 +0200)
Use realpath to obtain the webroot - backport
Signed-off-by: Sebastian Kostka sebastian.kostka@gmail.com
lib/private/Template/CSSResourceLocator.php
lib/private/Template/ResourceLocator.php

index 0150449ac9f7ebe2450b8e1133341e3ce113b0b4..32dabb48c0d8c96f3e849054ed9b1df60e52fc51 100644 (file)
@@ -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
                                 *
index 4e733d28f266da875bc268682786cd83cad662ee..f721906e12ba32ea79304148485ee7631a857bbc 100755 (executable)
@@ -125,7 +125,7 @@ abstract class ResourceLocator {
                }
 
                if (!$webRoot) {
-                       $tmpRoot = $root;
+                       $tmpRoot = realpath($root);
                        /*
                         * traverse the potential web roots upwards in the path
                         *