Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 063f6096f548a5dc89e97446120cbb09ed9ddd49 1 parent 4e3dd7f
Mark Evans authored August 14, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  catalog/product_info.php
4  catalog/product_info.php
@@ -12,6 +12,10 @@
12 12
 
13 13
   require('includes/application_top.php');
14 14
 
  15
+  if (!isset($HTTP_GET_VARS['products_id']) || !is_numeric($HTTP_GET_VARS['products_id'])) {
  16
+    tep_redirect(tep_href_link(FILENAME_DEFAULT));
  17
+  }
  18
+
15 19
   require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
16 20
 
17 21
   $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 . "'");

0 notes on commit 063f609

Please sign in to comment.
Something went wrong with that request. Please try again.