From c6f3aecef1b128dc61380960e6b027d7a3691f76 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 29 Apr 2024 17:13:40 +0200 Subject: fix(files): Use string array instead of string for forbidden characters Signed-off-by: Ferdinand Thiessen --- apps/files/lib/Controller/ViewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/lib') 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); -- cgit v1.2.3