aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ViewControllerTest.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2023-09-22 14:22:04 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-10-04 11:12:44 +0200
commitdbeb526bbab64e051958e1194e32903c2420e40d (patch)
tree3e976dec8699518e0f5db13051430aedd0225807 /apps/files/tests/Controller/ViewControllerTest.php
parent4756807f2e72b1dcd8ba11e038bcd5e01d41044a (diff)
downloadnextcloud-server-dbeb526bbab64e051958e1194e32903c2420e40d.tar.gz
nextcloud-server-dbeb526bbab64e051958e1194e32903c2420e40d.zip
fix(files): disallow illegal characters
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/tests/Controller/ViewControllerTest.php')
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index b997bbcad65..1f8a609106f 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -51,7 +51,6 @@ use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserSession;
use OCP\Share\IManager;
-use OCP\Template;
use Test\TestCase;
/**
@@ -153,6 +152,12 @@ class ViewControllerTest extends TestCase {
'owner' => 'MyName',
'ownerDisplayName' => 'MyDisplayName',
]);
+
+ $this->config
+ ->expects($this->any())
+ ->method('getSystemValue')
+ ->with('forbidden_chars', [])
+ ->willReturn([]);
$this->config
->method('getUserValue')
->willReturnMap([