Skip to content

Commit

Permalink
fix(JSConfig): Add forbidden_filenames and `forbidden_filename_char…
Browse files Browse the repository at this point in the history
…acters` to the `oc_config`

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed May 2, 2024
1 parent 70b001a commit 059efb2
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 @@ -168,7 +168,10 @@ public function getConfig(): string {

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

0 comments on commit 059efb2

Please sign in to comment.