rawurlencode params

This commit is contained in:
Michael RICOIS 2018-02-14 17:07:37 +01:00
parent 7b734c9b60
commit c530d9324e

View File

@ -351,12 +351,14 @@ class FrontController extends FrontControllerCore
$excludedKey = array('isolang', 'id_lang');
foreach($_GET as $key => $value) {
if(!in_array($key, $excludedKey)) {
$params .= ($params == '' ? '?' : '&').$key.'='.$value;
$params .= ($params == '' ? '?' : '&').$key.'='.rawurlencode($value);
}
}
if(defined('_PS_MODE_DEV_') && _PS_MODE_DEV_ && $_SERVER['REQUEST_URI'] != __PS_BASE_URI__) {
die('[Debug] This page has moved<br />Please use the following URL instead: <a href="'.$canonicalURL.$params.'">'.$canonicalURL.$params.'</a>');
}
header('HTTP/1.0 301 Moved');
Tools::redirectLink($canonicalURL.$params);
}