diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-25 14:25:49 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:28:59 +0100 |
commit | 9d170f1269adebf0996bd631b18e0a2a83bf02c9 (patch) | |
tree | 191a82d441430957347a391f7d3fff7bb200ca9f /lib/private/Setup.php | |
parent | 065531570d8466d305c51bcfc2b09713057f10a7 (diff) | |
download | nextcloud-server-9d170f1269adebf0996bd631b18e0a2a83bf02c9.tar.gz nextcloud-server-9d170f1269adebf0996bd631b18e0a2a83bf02c9.zip |
Fix warning about passing null to rtrim
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r-- | lib/private/Setup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index f1ad04671f9..589bbb273c0 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -480,7 +480,7 @@ class Setup { if (!filter_var($webRoot, FILTER_VALIDATE_URL)) { throw new InvalidArgumentException('invalid value for overwrite.cli.url'); } - $webRoot = rtrim(parse_url($webRoot, PHP_URL_PATH), '/'); + $webRoot = rtrim((parse_url($webRoot, PHP_URL_PATH) ?? ''), '/'); } else { $webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/'; } |