This is a discussion on Cart Quantity Security Flaw Patch within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Easier method IMO. edit catalog/includes/application_top.php find case 'update_product' : ... find this line in that section $cart->add_cart($...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Easier method IMO. edit catalog/includes/application_top.php find case 'update_product' : ... find this line in that section $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); and add above it if ((int)$HTTP_POST_VARS['cart_quantity'][$i] > 9999999) { $HTTP_POST_VARS['cart_quantity'][$i] = 9999999; } change the first 9999999 to the maximum amount allowed... any value over that will automatically be set to the second 9999999 maximum amount.. file included contains only this text. insaini More...
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cart Quantity Security Flaw Patch | michael_s | New osCommerce Contributions | 0 | 10-02-2007 05:20 AM |
| Cart Quantity Security Flaw Patch | michael_s | New osCommerce Contributions | 0 | 10-02-2007 03:02 AM |
| Security Patch osCMax 2.0RC2 | warrenthewindmill | osCMax v1.7 Discussion | 2 | 12-04-2005 10:50 AM |
| Re: Security Patch | loba | osCMax v1.7 Discussion | 13 | 03-25-2005 06:01 AM |
| Security patch killed pop-up function | bjrafferty | osCMax v1.7 Discussion | 2 | 03-24-2005 01:13 PM |