From 079f016ceb3816e7cde40ddd45379e30c224d785 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 1 Nov 2016 14:43:38 +0200 Subject: [PATCH] 14.09.16 --- common/modules/product/CatalogUrlManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/modules/product/CatalogUrlManager.php b/common/modules/product/CatalogUrlManager.php index 8cd89c2..6ce1eda 100755 --- a/common/modules/product/CatalogUrlManager.php +++ b/common/modules/product/CatalogUrlManager.php @@ -30,7 +30,6 @@ class CatalogUrlManager implements UrlRuleInterface { $paths = explode('/', $pathInfo); - if (!array_key_exists($paths[0], $this->route_map)) { return false; } @@ -76,6 +75,9 @@ class CatalogUrlManager implements UrlRuleInterface { throw new HttpException(404 ,'Page not found'); } } + if(isset($paths[1]) && empty($paths[1])){ + throw new HttpException(404 ,'Page not found'); + } } elseif ($paths[0] == 'product') { if (!empty($paths[2])) { throw new HttpException(404 ,'Page not found'); -- libgit2 0.21.4