diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-23 02:25:23 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-28 22:19:25 +0100 |
commit | 1017f4f34acd75a7a22b9667b60356c43d773496 (patch) | |
tree | 4c8bf1e1f1f520f265975cd699a6fafe393e7f55 /lib | |
parent | 27642d3e6dc01a387762e0b13fc66557e0c835b2 (diff) | |
download | nextcloud-server-1017f4f34acd75a7a22b9667b60356c43d773496.tar.gz nextcloud-server-1017f4f34acd75a7a22b9667b60356c43d773496.zip |
fix: Also expose forbidden filename character in the capabilities
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Util.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index e70f084b576..e3f394c1ca9 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -51,6 +51,7 @@ use OC\AppScriptDependency; use OC\AppScriptSort; use OCP\Share\IManager; use Psr\Container\ContainerExceptionInterface; +use Psr\Log\LoggerInterface; /** * This class provides different helper functions to make the life of a developer easier @@ -533,9 +534,9 @@ class Util { } // Get admin defined invalid characters - $additionalChars = \OC::$server->getConfig()->getSystemValue('forbidden_chars', []); + $additionalChars = \OCP\Server::get(IConfig::class)->getSystemValue('forbidden_chars', []); if (!is_array($additionalChars)) { - \OC::$server->getLogger()->error('Invalid system config value for "forbidden_chars" is ignored.'); + \OCP\Server::get(LoggerInterface::class)->error('Invalid system config value for "forbidden_chars" is ignored.'); $additionalChars = []; } return array_merge($invalidChars, $additionalChars); |