Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

If no product_id is passed redirect to the index page. Fixes issue #202

  • Loading branch information...
commit 063f6096f548a5dc89e97446120cbb09ed9ddd49 1 parent 4e3dd7f
@markkevans markkevans authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 catalog/product_info.php
View
4 catalog/product_info.php
@@ -12,6 +12,10 @@
require('includes/application_top.php');
+ if (!isset($HTTP_GET_VARS['products_id']) || !is_numeric($HTTP_GET_VARS['products_id'])) {
+ tep_redirect(tep_href_link(FILENAME_DEFAULT));
+ }
+
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
Please sign in to comment.
Something went wrong with that request. Please try again.