diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-11 14:57:25 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-15 11:50:48 +0100 |
commit | 24f8b04908e8fa5aeb57e21d36a0a35992c1d561 (patch) | |
tree | 68f9860fdf6d0d2ffbe2c1e8c64cb4b0e354028e /apps | |
parent | 8766a90cffbc9ba0dd6f36c744f3f91968d8b65c (diff) | |
download | nextcloud-server-24f8b04908e8fa5aeb57e21d36a0a35992c1d561.tar.gz nextcloud-server-24f8b04908e8fa5aeb57e21d36a0a35992c1d561.zip |
Remove CSRF check from code integrity rescan
Did not find a way to get a valid token from SetupCheck
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 1 | ||||
-rw-r--r-- | apps/settings/lib/SetupChecks/CodeIntegrity.php | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index 7e865785522..eb6664c5e47 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -234,6 +234,7 @@ class CheckSetupController extends Controller { } /** + * @NoCSRFRequired * @return RedirectResponse * @AuthorizedAdminSetting(settings=OCA\Settings\Settings\Admin\Overview) */ diff --git a/apps/settings/lib/SetupChecks/CodeIntegrity.php b/apps/settings/lib/SetupChecks/CodeIntegrity.php index f5882be888f..20ecf5360b7 100644 --- a/apps/settings/lib/SetupChecks/CodeIntegrity.php +++ b/apps/settings/lib/SetupChecks/CodeIntegrity.php @@ -53,7 +53,6 @@ class CodeIntegrity implements ISetupCheck { } elseif ($this->checker->hasPassedCheck()) { return SetupResult::success($this->l10n->t('No altered files')); } else { - // FIXME: If setup check can link to settings pages this should link to /settings/integrity/failed and /settings/integrity/rescan?requesttoken=TOKEN return SetupResult::error( $this->l10n->t('Some files have not passed the integrity check. {link1} {link2}'), $this->urlGenerator->linkToDocs('admin-code-integrity'), @@ -68,7 +67,6 @@ class CodeIntegrity implements ISetupCheck { 'type' => 'highlight', 'id' => 'rescanFailedIntegrityCheck', 'name' => 'Rescan…', - //, ['requesttoken' => '']? 'link' => $this->urlGenerator->linkToRoute('settings.CheckSetup.rescanFailedIntegrityCheck'), ], ], |