// Fix & - theme is not w3c valid anymore for now

This commit is contained in:
rMalie committed 2011-09-14 09:23:32 +00:00
1 parent 7884bceeeb
commit dfdd99da40
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ class ProductControllerCore extends FrontController
// $_SERVER['HTTP_HOST'] must be replaced by the real canonical domain
if (Validate::isLoadedObject($this->product))
{
$canonicalURL = str_replace('&', '&', $this->context->link->getProductLink($this->product));
$canonicalURL = $this->context->link->getProductLink($this->product);
if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', Tools::getProtocol().$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']))
{
header('HTTP/1.0 301 Moved');