Skip to content

Commit 2f422ad

Browse files
author
Lukasz Bajsarowicz
committed
#10611 Ignore request key check for error page to avoid redirect loop
1 parent e649b4c commit 2f422ad

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Backend/Controller/Adminhtml/Noroute

1 file changed

+10
-0
lines changed

app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@ public function execute()
3939
$resultPage->addHandle('adminhtml_noroute');
4040
return $resultPage;
4141
}
42+
43+
/**
44+
* Error page should be public accessible. Do not check keys to avoid redirect loop
45+
*
46+
* @return bool
47+
*/
48+
protected function _validateSecretKey()
49+
{
50+
return true;
51+
}
4252
}

0 commit comments

Comments
 (0)