Merge pull request #1583 from aman-webkul/gli-2898

[Fix]: Open Redirection
This commit is contained in:
Rohit Jain
2026-05-07 19:48:41 +05:30
committed by GitHub

View File

@@ -1427,8 +1427,8 @@ class AdminControllerCore extends Controller
} elseif ($this->postImage($object->id) && !count($this->errors) && $this->_redirect) {
$parent_id = (int)Tools::getValue('id_parent', 1);
// Specific back redirect
if ($back = Tools::getValue('back')) {
$this->redirect_after = urldecode($back).'&conf=4';
if (($back = Tools::secureReferrer(Tools::getValue('back'))) && $back != __PS_BASE_URI__) {
$this->redirect_after=urldecode($back).'&conf=4';
}
// Specific scene feature
// @todo change stay_here submit name (not clear for redirect to scene ... )