Commit 4365261efe0dab68d96d178f4c3c944352f9eb41
1 parent
a3b7905e
UrlManager
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
common/modules/product/CatalogUrlManager.php
@@ -54,6 +54,9 @@ class CatalogUrlManager implements UrlRuleInterface { | @@ -54,6 +54,9 @@ class CatalogUrlManager implements UrlRuleInterface { | ||
54 | } | 54 | } |
55 | } | 55 | } |
56 | } elseif ($paths[0] == 'product') { | 56 | } elseif ($paths[0] == 'product') { |
57 | + if (!empty($paths[2])) { | ||
58 | + throw new HttpException(404 ,'Page not found'); | ||
59 | + } | ||
57 | $product = ProductSearch::findByAlias($paths[1]); | 60 | $product = ProductSearch::findByAlias($paths[1]); |
58 | if (empty($product->product_id)) { | 61 | if (empty($product->product_id)) { |
59 | throw new HttpException(404 ,'Page not found'); | 62 | throw new HttpException(404 ,'Page not found'); |