aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-04-29 17:13:40 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-04-29 17:15:00 +0200
commitc6f3aecef1b128dc61380960e6b027d7a3691f76 (patch)
treef7e7ad98f60d5f9e2b37525c2066f56a9cd25d59 /apps/files/lib
parent6a281f019c73dec54f487890d7ff80d26a3f04bf (diff)
downloadnextcloud-server-c6f3aecef1b128dc61380960e6b027d7a3691f76.tar.gz
nextcloud-server-c6f3aecef1b128dc61380960e6b027d7a3691f76.zip
fix(files): Use string array instead of string for forbidden characters
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/ViewController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 2e6ffa6a749..5c31ae8ffd4 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -253,7 +253,7 @@ class ViewController extends Controller {
// Forbidden file characters
$forbiddenCharacters = \OCP\Util::getForbiddenFileNameChars();
- $this->initialState->provideInitialState('forbiddenCharacters', implode('', $forbiddenCharacters));
+ $this->initialState->provideInitialState('forbiddenCharacters', $forbiddenCharacters);
$event = new LoadAdditionalScriptsEvent();
$this->eventDispatcher->dispatchTyped($event);