[-] 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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user