aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-10 16:59:26 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-07-11 13:31:54 +0200
commita229723b8c65183f8cb7b62f24f7b9c41a2b622b (patch)
treedf4a12b49dc500f877a58603f1c47d65d7bfe814 /core
parentb09347ae536da3640d5cb8cff4254325f6e90926 (diff)
downloadnextcloud-server-a229723b8c65183f8cb7b62f24f7b9c41a2b622b.tar.gz
nextcloud-server-a229723b8c65183f8cb7b62f24f7b9c41a2b622b.zip
feat: Add new forbidden filename options to Capabilities
Allow clients to access the new filename validation options and make frontend name validation possible. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/OCJSController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Controller/OCJSController.php b/core/Controller/OCJSController.php
index 11a6e5827d8..8a6193d2e53 100644
--- a/core/Controller/OCJSController.php
+++ b/core/Controller/OCJSController.php
@@ -8,6 +8,7 @@ namespace OC\Core\Controller;
use bantu\IniGetWrapper\IniGetWrapper;
use OC\Authentication\Token\IProvider;
use OC\CapabilitiesManager;
+use OC\Files\FilenameValidator;
use OC\Template\JSConfigHelper;
use OCP\App\IAppManager;
use OCP\AppFramework\Controller;
@@ -44,6 +45,7 @@ class OCJSController extends Controller {
CapabilitiesManager $capabilitiesManager,
IInitialStateService $initialStateService,
IProvider $tokenProvider,
+ FilenameValidator $filenameValidator,
) {
parent::__construct($appName, $request);
@@ -59,7 +61,8 @@ class OCJSController extends Controller {
$urlGenerator,
$capabilitiesManager,
$initialStateService,
- $tokenProvider
+ $tokenProvider,
+ $filenameValidator,
);
}