Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

757
 
808
 
808
 
product.php
_> 55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2005 osCommerce
   8+  Copyright (c) 2006 osCommerce
99 
  1010   Released under the GNU General Public License
  1111 */
     
 !
2121         $Qproduct->bindTable(':table_products', TABLE_PRODUCTS);
  2222         $Qproduct->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION);
  2323 
<> 24 -        if (is_numeric($id) || ereg('[0-9]+[{[0-9]+}[0-9]+]*$', $id)) {
   24+        if (ereg('^[0-9]+(#?([0-9]+:?[0-9]+)+(;?([0-9]+:?[0-9]+)+)*)*$', $id)) {
2525           $Qproduct->appendQuery('p.products_id = :products_id');
  2626           $Qproduct->bindInt(':products_id', osc_get_product_id($id));
  2727         } else {
     
 !
235235       $Qcheck = $osC_Database->query('select p.products_id from :table_products p');
  236236       $Qcheck->bindTable(':table_products', TABLE_PRODUCTS);
  237237 
<> 238 -      if (is_numeric($id) || ereg('[0-9]+[{[0-9]+}[0-9]+]*$', $id)) {
   238+      if (ereg('^[0-9]+(#?([0-9]+:?[0-9]+)+(;?([0-9]+:?[0-9]+)+)*)*$', $id)) {
<_ 239239         $Qcheck->appendQuery('where p.products_id = :products_id');
  240240         $Qcheck->bindInt(':products_id', osc_get_product_id($id));
  241241       } else {