[-] FO : Bad value for back when controller name is sent
This commit is contained in:
@@ -87,12 +87,15 @@ class AuthControllerCore extends FrontController
|
||||
|
||||
$this->context->smarty->assign('newsletter', 1);
|
||||
|
||||
$back = Tools::getValue('back');
|
||||
$key = Tools::safeOutput(Tools::getValue('key'));
|
||||
if (!empty($key))
|
||||
$back .= (strpos($back, '?') !== false ? '&' : '?').'key='.$key;
|
||||
if (!empty($back))
|
||||
$this->context->smarty->assign('back', Tools::safeOutput(Tools::secureReferrer($back)));
|
||||
if ($back = Tools::safeOutput(Tools::getValue('back')))
|
||||
{
|
||||
$key = Tools::safeOutput(Tools::getValue('key'));
|
||||
if (!empty($key))
|
||||
$back .= (strpos($back, '?') !== false ? '&' : '?').'key='.$key;
|
||||
if ($back == Tools::secureReferrer(Tools::getValue('back')))
|
||||
$this->context->smarty->assign('back', html_entity_decode($back));
|
||||
$this->context->smarty->assign('back', $back);
|
||||
}
|
||||
|
||||
if (Tools::getValue('display_guest_checkout'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user