Explorar el Código

Mark many as read must be a POST action

See https://github.com/marienfressinaud/FreshRSS/issues/599
Marien Fressinaud hace 11 años
padre
commit
1e5efc9299
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app/Controllers/entryController.php

+ 4 - 0
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 {