From 8ddfb088e3d0da3c7805f7ceca7730e9aa690c4f Mon Sep 17 00:00:00 2001 From: BadPixxel Date: Tue, 26 Nov 2024 12:29:00 +0100 Subject: [PATCH] FIX: Escape Collector Discount Descriptions --- modules/splashsync/src/Services/DiscountCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/splashsync/src/Services/DiscountCollector.php b/modules/splashsync/src/Services/DiscountCollector.php index 1720d042..4fde54e5 100644 --- a/modules/splashsync/src/Services/DiscountCollector.php +++ b/modules/splashsync/src/Services/DiscountCollector.php @@ -351,7 +351,7 @@ private static function toDiscountDbValues(Order $order, array $rawDiscounts): a $data[] = array( 'id_order' => $order->id, 'cart_rule_name' => $cartRuleName, - 'cart_rule_description' => $cartRule->description, + 'cart_rule_description' => Db::getInstance()->_escape($cartRule->description), 'tax_name' => $taxName, 'tax_rate' => $taxRate, 'amount' => $amounts['without_taxes'] ?? 0,