aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/UnsupportedBrowserController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/UnsupportedBrowserController.php')
-rw-r--r--core/Controller/UnsupportedBrowserController.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Controller/UnsupportedBrowserController.php b/core/Controller/UnsupportedBrowserController.php
index b8efe2539f1..2877e2e9047 100644
--- a/core/Controller/UnsupportedBrowserController.php
+++ b/core/Controller/UnsupportedBrowserController.php
@@ -11,7 +11,9 @@ namespace OC\Core\Controller;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
+use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
+use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;
@@ -24,11 +26,10 @@ class UnsupportedBrowserController extends Controller {
}
/**
- * @PublicPage
- * @NoCSRFRequired
- *
* @return Response
*/
+ #[PublicPage]
+ #[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: 'unsupported')]
public function index(): Response {
Util::addScript('core', 'unsupported-browser');