[-] FO : Fix bug #PSCFV-11190 double escaping on customization

This commit is contained in:
gRoussac
2013-12-02 15:51:29 +01:00
parent 6d473d5374
commit aea8f0285e
-4
View File
@@ -3062,10 +3062,6 @@ class CartCore extends ObjectModel
*/
public function addTextFieldToProduct($id_product, $index, $type, $text_value)
{
if (!_PS_MAGIC_QUOTES_GPC_){
$text_value = str_replace('\\', '\\\\', $text_value);
$text_value = str_replace('\'', '\\\'', $text_value);
}
return $this->_addCustomization($id_product, 0, $index, $type, $text_value, 0);
}