aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-09-09 22:37:12 +0200
committerBackportbot <backportbot-noreply@rullzer.com>2019-09-10 07:23:47 +0000
commit258c863b628bf9bed4d6e7791cea0561d46cff58 (patch)
treece7f049c2af84f37502b8d5d72af63032eab2fa3
parentc092a011e3a898d2165dccfd25a20c53e86619ce (diff)
downloadnextcloud-server-258c863b628bf9bed4d6e7791cea0561d46cff58.tar.gz
nextcloud-server-258c863b628bf9bed4d6e7791cea0561d46cff58.zip
set default CSP on NotFoundResponse
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--lib/public/AppFramework/Http/NotFoundResponse.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/NotFoundResponse.php b/lib/public/AppFramework/Http/NotFoundResponse.php
index 6d764ec526e..2ae3c41fe4a 100644
--- a/lib/public/AppFramework/Http/NotFoundResponse.php
+++ b/lib/public/AppFramework/Http/NotFoundResponse.php
@@ -37,6 +37,7 @@ class NotFoundResponse extends Response {
public function __construct() {
parent::__construct();
+ $this->setContentSecurityPolicy(new ContentSecurityPolicy());
$this->setStatus(404);
}