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

// BugFix: Canonical rewriting do not allow get array value
This commit is contained in:
mDeflotte
2012-04-04 12:49:04 +00:00
parent d5219d013e
commit 025e698e54
2 changed files with 24 additions and 7 deletions
+2 -2
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');