Merge pull request #45374 from nextcloud/feat/add-to-config

feat: Add `forbidden_filename_characters` to JSConfig for use in frontend libraries
This commit is contained in:
Ferdinand Thiessen 2024-05-16 19:02:04 +02:00 committed by GitHub
commit b1f9c4bfee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,6 +169,7 @@ class JSConfigHelper {
$config = [
'auto_logout' => $this->config->getSystemValue('auto_logout', false),
'blacklist_files_regex' => FileInfo::BLACKLIST_FILES_REGEX,
'forbidden_filename_characters' => Util::getForbiddenFileNameChars(),
'loglevel' => $this->config->getSystemValue('loglevel_frontend',
$this->config->getSystemValue('loglevel', ILogger::WARN)
),