summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-16 14:23:04 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-16 14:23:04 +0200
commit1e5efc92993feddb7916ef675010d0de0e470ac5 (patch)
tree6e1988b79ccf37ed6d88d8c1926353f68ed00bd5 /app
parent497d3564c8f4638107bfcae6a492bd51e9012b9d (diff)
Mark many as read must be a POST action
See https://github.com/marienfressinaud/FreshRSS/issues/599
Diffstat (limited to 'app')
-rwxr-xr-xapp/Controllers/entryController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php
index ac43587ea..ab66d9198 100755
--- a/app/Controllers/entryController.php
+++ b/app/Controllers/entryController.php
@@ -45,6 +45,10 @@ class FreshRSS_entry_Controller extends Minz_ActionController {
$entryDAO = FreshRSS_Factory::createEntryDao();
if ($id == false) {
+ if (!Minz_Request::isPost()) {
+ return;
+ }
+
if (!$get) {
$entryDAO->markReadEntries ($idMax);
} else {