aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/entryController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/entryController.php')
-rw-r--r--app/Controllers/entryController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php
index cbba1817e..0e8a4a1b9 100644
--- a/app/Controllers/entryController.php
+++ b/app/Controllers/entryController.php
@@ -260,10 +260,13 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
/**
* This action purges old entries from feeds.
*
- * @todo should be a POST request
* @todo should be in feedController
*/
public function purgeAction(): void {
+ if (!Minz_Request::isPost()) {
+ Minz_Error::error(403);
+ return;
+ }
if (function_exists('set_time_limit')) {
@set_time_limit(300);
}