Skip to content

Commit

Permalink
fix(JSConfig): Add forbidden_filenames, `forbidden_filename_charact…
Browse files Browse the repository at this point in the history
…ers`, and `forbidden_filename_extensions` to the `oc_config`

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jun 1, 2024
1 parent a7e5c62 commit 7d074c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Template/JSConfigHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@ public function getConfig(): string {

$config = [
'auto_logout' => $this->config->getSystemValue('auto_logout', false),
// deprecated
'blacklist_files_regex' => FileInfo::BLACKLIST_FILES_REGEX,
'forbidden_filenames' => Util::getForbiddenFilenames(),
'forbidden_filename_characters' => Util::getForbiddenFileNameChars(),
'forbidden_filename_extensions' => Util::getForbiddenFilenameExtensions(),
'loglevel' => $this->config->getSystemValue('loglevel_frontend',
$this->config->getSystemValue('loglevel', ILogger::WARN)
),
Expand Down

0 comments on commit 7d074c7

Please sign in to comment.