Skip to content

Commit acff472

Browse files
committed
fix(JSConfig): Add forbidden_filenames and forbidden_filename_characters to the oc_config
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent c314bbb commit acff472

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/private/Template/JSConfigHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ public function getConfig(): string {
168168

169169
$config = [
170170
'auto_logout' => $this->config->getSystemValue('auto_logout', false),
171+
// deprecated
171172
'blacklist_files_regex' => FileInfo::BLACKLIST_FILES_REGEX,
173+
'forbidden_filenames' => \OCP\Util::getForbiddenFilenames(),
174+
'forbidden_filename_characters' => \OCP\Util::getForbiddenFileNameChars(),
172175
'loglevel' => $this->config->getSystemValue('loglevel_frontend',
173176
$this->config->getSystemValue('loglevel', ILogger::WARN)
174177
),

0 commit comments

Comments
 (0)