diff --git a/cake/console/templates/default/actions/controller_actions.ctp b/cake/console/templates/default/actions/controller_actions.ctp index 8327cb44a..c5f199100 100644 --- a/cake/console/templates/default/actions/controller_actions.ctp +++ b/cake/console/templates/default/actions/controller_actions.ctp @@ -115,6 +115,9 @@ } public function delete($id = null) { + if (!$this->request->is('post')) { + throw new MethodNotAllowedException(); + } if (!$id) { $this->Session->setFlash(__('Invalid id for ')); diff --git a/cake/console/templates/default/views/form.ctp b/cake/console/templates/default/views/form.ctp index 72afa827d..7842e14c0 100644 --- a/cake/console/templates/default/views/form.ctp +++ b/cake/console/templates/default/views/form.ctp @@ -47,7 +47,7 @@