diff options
author | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2022-10-20 10:14:44 +0300 |
---|---|---|
committer | Sergey Linnik <sergey.linnik@onlyoffice.com> | 2022-10-20 10:14:44 +0300 |
commit | ce050c05d9c419e2e599cf5f19a351031b76dd1d (patch) | |
tree | a7e9097e63376163c63f864c35e36b1613e72c28 | |
parent | 71e74af463bb35c57816bf65dad9a9f9c5ba190a (diff) |
fix null parameter in trim
-rw-r--r-- | lib/appconfig.php | 2 |
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 . "/"; |