summaryrefslogtreecommitdiffstats
path: root/core/Controller/CssController.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-11-10 16:16:33 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:13 +0100
commit3b62003c9c085dc76357220fc83f14bcf96c60a2 (patch)
treee30b5286208c5dff3c0fc58c8dc9e37e47bc4464 /core/Controller/CssController.php
parent2f5f1096ad3d754ae4e55d5e53be44e5bba9db19 (diff)
downloadnextcloud-server-3b62003c9c085dc76357220fc83f14bcf96c60a2.tar.gz
nextcloud-server-3b62003c9c085dc76357220fc83f14bcf96c60a2.zip
Injection fix and log appname fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/Controller/CssController.php')
-rw-r--r--core/Controller/CssController.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php
index 45a188adba6..31ec801d21c 100644
--- a/core/Controller/CssController.php
+++ b/core/Controller/CssController.php
@@ -54,7 +54,7 @@ class CssController extends Controller {
}
/**
- * @NoAdminRequired
+ * @PublicPage
* @NoCSRFRequired
*
* @param string $fileName css filename with extension
@@ -76,8 +76,7 @@ class CssController extends Controller {
$response->addHeader('Expires', $expires->format(\DateTime::RFC2822));
$response->addHeader('Pragma', 'cache');
return $response;
- } else {
- return new NotFoundResponse();
}
+ return new NotFoundResponse();
}
}