Browse Source

feat: Add `forbidden_filename_characters` to JSConfig for use in frontend libraries

Add the filename restrictions to our JS config so we can create a common frontend library
function to check filename validity (de-duplicate code).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/45374/head
Ferdinand Thiessen 1 month ago
parent
commit
dd4901d689
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/private/Template/JSConfigHelper.php

+ 1
- 0
lib/private/Template/JSConfigHelper.php 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)
),

Loading…
Cancel
Save