Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 032bfdd

Browse files
committed
MAGETWO-85139: Cross-Site Request Forgery (Backups, maintenance mode) - Magento 1 & 2
1 parent a41b543 commit 032bfdd

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Backup/Controller/Adminhtml/Index

1 file changed

+2
-2
lines changed

app/code/Magento/Backup/Controller/Adminhtml/Index/Create.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Create extends \Magento\Backup\Controller\Adminhtml\Index
1919
*/
2020
public function execute()
2121
{
22-
if (!$this->requestAllowed()) {
22+
if (!$this->isRequestAllowed()) {
2323
return $this->_redirect('*/*/index');
2424
}
2525

@@ -112,7 +112,7 @@ public function execute()
112112
*
113113
* @return bool
114114
*/
115-
private function requestAllowed()
115+
private function isRequestAllowed()
116116
{
117117
return $this->getRequest()->isAjax() && $this->getRequest()->isPost();
118118
}

0 commit comments

Comments
 (0)