From e6f75cc990c31dc1a7ad950d4b1cd89dee053644 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 12 Jun 2012 15:58:27 +0000 Subject: [PATCH] // Fix redirection in Shop::initialize() --- classes/shop/Shop.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index b79c71a4f..b54955a9f 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -344,7 +344,9 @@ class ShopCore extends ObjectModel if (!Validate::isLoadedObject($default_shop)) throw new PrestaShopException('Shop not found'); - $url = 'http://'.$default_shop->domain.$default_shop->getBaseURI().'index.php?'.$_SERVER['QUERY_STRING']; + $params = $_GET; + unset($params['id_shop']); + $url = 'http://'.$default_shop->domain.$default_shop->getBaseURI().'index.php?'.http_build_query($params); header('location: '.$url); exit; }