Commit 079f016ceb3816e7cde40ddd45379e30c224d785
1 parent
4ffbda18
14.09.16
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
common/modules/product/CatalogUrlManager.php
... | ... | @@ -30,7 +30,6 @@ class CatalogUrlManager implements UrlRuleInterface { |
30 | 30 | $paths = explode('/', $pathInfo); |
31 | 31 | |
32 | 32 | |
33 | - | |
34 | 33 | if (!array_key_exists($paths[0], $this->route_map)) { |
35 | 34 | return false; |
36 | 35 | } |
... | ... | @@ -76,6 +75,9 @@ class CatalogUrlManager implements UrlRuleInterface { |
76 | 75 | throw new HttpException(404 ,'Page not found'); |
77 | 76 | } |
78 | 77 | } |
78 | + if(isset($paths[1]) && empty($paths[1])){ | |
79 | + throw new HttpException(404 ,'Page not found'); | |
80 | + } | |
79 | 81 | } elseif ($paths[0] == 'product') { |
80 | 82 | if (!empty($paths[2])) { |
81 | 83 | throw new HttpException(404 ,'Page not found'); | ... | ... |