summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Setup.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 92246e8322e..43fa6c4a117 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -437,6 +437,9 @@ class Setup {
return false;
}
$webRoot = parse_url($webRoot, PHP_URL_PATH);
+ if ($webRoot === null) {
+ return false;
+ }
$webRoot = rtrim($webRoot, '/');
} else {
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';