[-] Project : #PSFV-786 - Link::getPaginationLink ignores array parameters

// BugFix: Canonical rewriting do not allow get array value

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14452 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-04-04 12:49:04 +00:00
parent e1a98ac876
commit b5a1ef3db0
2 changed files with 24 additions and 7 deletions

View File

@@ -614,11 +614,11 @@ class FrontControllerCore extends Controller
$excludedKey = array('isolang', 'id_lang', 'controller', 'fc');
foreach ($_GET as $key => $value)
if (!in_array($key, $excludedKey))
$params[] = $key.'='.$value;
$params[$key] = $value;
$strParams = '';
if ($params)
$strParams = ((strpos($canonicalURL, '?') === false) ? '?' : '&').implode('&', $params);
$strParams = ((strpos($canonicalURL, '?') === false) ? '?' : '&').http_build_query($params);
header('HTTP/1.0 301 Moved');
header('Cache-Control: no-cache');