diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-08-09 14:27:20 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-08-09 16:45:25 +0200 |
commit | 8c1e75e0520d0efe51b615952329b1980d21f8b6 (patch) | |
tree | 68e85271ba02bdadd28350da76b70f23f93ba532 /lib/private/AppFramework/Middleware/Security | |
parent | 88603e98f89de716eedb6b1c94e0bc1f3366db3c (diff) | |
download | nextcloud-server-8c1e75e0520d0efe51b615952329b1980d21f8b6.tar.gz nextcloud-server-8c1e75e0520d0efe51b615952329b1980d21f8b6.zip |
Do not use file as template parameter
Using file will overwrite the $file parameter in the template base.
Leading to trying to include a file that is the exception message. Which
will of course fail.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework/Middleware/Security')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php index 2eedc39c3ab..87954ccc1cb 100644 --- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php @@ -249,7 +249,7 @@ class SecurityMiddleware extends Middleware { $url = $this->urlGenerator->linkToRoute('core.login.showLoginForm', $params); $response = new RedirectResponse($url); } else { - $response = new TemplateResponse('core', '403', ['file' => $exception->getMessage()], 'guest'); + $response = new TemplateResponse('core', '403', ['message' => $exception->getMessage()], 'guest'); $response->setStatus($exception->getCode()); } } |