Ajax variations: stripslashes to fix attributes with quotes.

This commit is contained in:
Mike Jolley 2015-08-12 17:08:21 +01:00
parent a3d376b5c3
commit 457283bc3c
2 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,7 @@ class WC_AJAX {
die();
}
$variation_id = $variable_product->get_matching_variation( $_POST );
$variation_id = $variable_product->get_matching_variation( stripslashes_deep( $_POST ) );
if ( $variation_id ) {
$variation = $variable_product->get_available_variation( $variation_id );

View File

@ -161,6 +161,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Query within wc_customer_bought_product().
* Fix - Tab hiding with some theme markup.
* Fix - Ajax variations: stripslashes to fix attributes with quotes.
* Tweak - Disable error_reporting during ajax requests to prevent malformed JSON.
* Tweak - When merging shipping taxes with a shipping rate taxes, ensure shipping rate taxes is not malformed.