summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-16 01:10:19 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-16 01:10:19 +0100
commit0a1937208fed65f35c7c94290621a056888be293 (patch)
tree00e8b68eac902dc3f5d56ea6da0f48336ae5ebca
parent939257992407fa5d7cfb71cd2ca93d504b0f9738 (diff)
downloadnextcloud-server-0a1937208fed65f35c7c94290621a056888be293.tar.gz
nextcloud-server-0a1937208fed65f35c7c94290621a056888be293.zip
Fixes a 500 without userid
plus cleanup of unused use statements Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/settings/lib/Controller/HelpController.php2
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php5
2 files changed, 1 insertions, 6 deletions
diff --git a/apps/settings/lib/Controller/HelpController.php b/apps/settings/lib/Controller/HelpController.php
index eaad0be6709..b09392aa8c8 100644
--- a/apps/settings/lib/Controller/HelpController.php
+++ b/apps/settings/lib/Controller/HelpController.php
@@ -50,7 +50,7 @@ class HelpController extends Controller {
IRequest $request,
INavigationManager $navigationManager,
IURLGenerator $urlGenerator,
- string $userId,
+ ?string $userId,
IGroupManager $groupManager
) {
parent::__construct($appName, $request);
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index 4f380f07d91..fc92bea3dc1 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -37,13 +37,8 @@ use OC\AppFramework\Middleware\Security\Exceptions\NotAdminException;
use OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException;
use OC\AppFramework\Middleware\Security\Exceptions\StrictCookieMissingException;
use OC\AppFramework\Utility\ControllerMethodReflector;
-use OC\Security\CSP\ContentSecurityPolicyManager;
-use OC\Security\CSP\ContentSecurityPolicyNonceManager;
-use OC\Security\CSRF\CsrfTokenManager;
use OCP\App\AppPathNotFoundException;
use OCP\App\IAppManager;
-use OCP\AppFramework\Http\ContentSecurityPolicy;
-use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Middleware;