diff options
Diffstat (limited to 'app/Controllers')
| -rw-r--r-- | app/Controllers/configureController.php | 8 | ||||
| -rw-r--r-- | app/Controllers/entryController.php | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 993982184..50edbbff7 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -443,6 +443,10 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { * Handles query deletion */ public function deleteQueryAction(): void { + if (!Minz_Request::isPost()) { + Minz_Error::error(403); + return; + } $id = Minz_Request::paramInt('id'); if (Minz_Request::paramTernary('id') === null || empty(FreshRSS_Context::userConf()->queries[$id])) { Minz_Error::error(404); @@ -465,6 +469,10 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { * lean data. */ public function bookmarkQueryAction(): void { + if (!Minz_Request::isPost()) { + Minz_Error::error(403); + return; + } $queries = []; foreach (FreshRSS_Context::userConf()->queries as $key => $query) { $queries[$key] = (new FreshRSS_UserQuery($query, FreshRSS_Context::categories(), FreshRSS_Context::labels()))->toArray(); 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); } |
