Skip to content

Commit

Permalink
Fix for bug where excluded prefixes weren't being skipped in forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Florio authored and Brett Florio committed Oct 14, 2011
1 parent 0c8ecef commit e2823c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions foxycart.cart_validation.php
Expand Up @@ -3,8 +3,8 @@
* FoxyCart_Helper
*
* @author FoxyCart.com
* @copyright FoxyCart.com LLC, 2010
* @version 0.7.0.20110429
* @copyright FoxyCart.com LLC, 2011
* @version 0.7.2.20111013
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
* @example http://wiki.foxycart.com/docs/cart/validation
*
Expand Down Expand Up @@ -221,7 +221,7 @@ public static function fc_hash_html($html) {
preg_match('%type=([\'"])(.*?)\1%i', $input, $type);
$type = (count($type) > 0) ? $type : array('', '', '');
// Skip the cart excludes
if (in_array($prefix.$name[2], self::$cart_excludes) || in_array($prefix.$name[2], self::$cart_excludes_prefixes)) {
if (in_array($prefix.$name[2], self::$cart_excludes) || in_array(substr($prefix.$name[2], 0, 2), self::$cart_excludes_prefixes)) {
self::$log[] = '<strong style="color:purple;">Skipping</strong> the reserved parameter or prefix "'.$prefix.$name[2].'" = '.$value[2];
continue;
}
Expand Down

0 comments on commit e2823c6

Please sign in to comment.