[-] FO : Fix bug #PSCFV-11190 double escaping on customization
This commit is contained in:
1 parent
6d473d5374
commit
aea8f0285e
1 file changed
-4
@@ -3062,10 +3062,6 @@ class CartCore extends ObjectModel
|
|||||||
*/
|
*/
|
||||||
public function addTextFieldToProduct($id_product, $index, $type, $text_value)
|
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);
|
return $this->_addCustomization($id_product, 0, $index, $type, $text_value, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user