[-] FO : Could not redirect back to url in adress.php

This commit is contained in:
gRoussac
2013-10-17 14:16:54 +02:00
parent 6b1d69dd7d
commit 3a38af9982
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -245,6 +245,8 @@ class AddressControllerCore extends FrontController
// Redirect to old page or current page
if ($back = Tools::getValue('back'))
{
if ($back == Tools::secureReferrer(Tools::getValue('back')))
Tools::redirect(html_entity_decode($back));
$mod = Tools::getValue('mod');
Tools::redirect('index.php?controller='.$back.($mod ? '&back='.$mod : ''));
}