We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2afbc3 commit be73bf0Copy full SHA for be73bf0
app/code/Magento/Sales/Controller/AbstractController/Reorder.php
@@ -8,6 +8,7 @@
8
9
use Magento\Framework\App\Action;
10
use Magento\Framework\Registry;
11
+use Magento\Framework\Exception\NotFoundException;
12
13
abstract class Reorder extends Action\Action
14
{
@@ -43,6 +44,11 @@ public function __construct(
43
44
*/
45
public function execute()
46
47
+ if (!$this->getRequest()->isPost()) {
48
+ throw new NotFoundException(__('Page not found.'));
49
+ return;
50
+ }
51
+
52
$result = $this->orderLoader->load($this->_request);
53
if ($result instanceof \Magento\Framework\Controller\ResultInterface) {
54
return $result;
0 commit comments