Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2022-10-20 10:14:44 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2022-10-20 10:14:44 +0300
commitce050c05d9c419e2e599cf5f19a351031b76dd1d (patch)
treea7e9097e63376163c63f864c35e36b1613e72c28
parent71e74af463bb35c57816bf65dad9a9f9c5ba190a (diff)
fix null parameter in trim
-rw-r--r--lib/appconfig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/appconfig.php b/lib/appconfig.php
index e73b4ee..47b20b6 100644
--- a/lib/appconfig.php
+++ b/lib/appconfig.php
@@ -427,7 +427,7 @@ class AppConfig {
if (empty($url)) {
$url = $this->GetSystemValue($this->_documentserver);
}
- if ($url !== "/") {
+ if ($url !== null && $url !== "/") {
$url = rtrim($url, "/");
if (strlen($url) > 0) {
$url = $url . "/";