Skip to content

Commit

Permalink
FIX: Escape Collector Discount Descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Nov 26, 2024
1 parent df346e8 commit 8ddfb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/splashsync/src/Services/DiscountCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8ddfb08

Please sign in to comment.