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