From 16906d8590f835017a9d31eee8e61665b68ed91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 19 Apr 2013 15:48:18 +0200 Subject: [PATCH] [-] Core: fix redirection loop for bugged versions of mysql using column name aliases on order by --- classes/shop/Shop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 2f86626b5..1538bb2e2 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -308,7 +308,7 @@ class ShopCore extends ObjectModel WHERE (su.domain = \''.$host.'\' OR su.domain_ssl = \''.$host.'\') AND s.active = 1 AND s.deleted = 0 - ORDER BY LENGTH(uri) DESC'; + ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC'; $id_shop = ''; $found_uri = '';