Skip to content

Commit 0d5197f

Browse files
escapeJsQuote
1 parent 5843e81 commit 0d5197f

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/GoogleAnalytics/Block

1 file changed

+2
-2
lines changed

app/code/Magento/GoogleAnalytics/Block/Ga.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function getOrdersTrackingCode()
130130
'price': '%s',
131131
'quantity': %s
132132
});",
133-
$this->escapeJs($item->getSku()),
133+
$this->escapeJsQuote($item->getSku()),
134134
$this->escapeJsQuote($item->getName()),
135135
$item->getPrice(),
136136
$item->getQtyOrdered()
@@ -236,7 +236,7 @@ public function getOrdersTrackingData()
236236
foreach ($collection as $order) {
237237
foreach ($order->getAllVisibleItems() as $item) {
238238
$result['products'][] = [
239-
'id' => $this->escapeJs($item->getSku()),
239+
'id' => $this->escapeJsQuote($item->getSku()),
240240
'name' => $this->escapeJsQuote($item->getName()),
241241
'price' => $item->getPrice(),
242242
'quantity' => $item->getQtyOrdered(),

0 commit comments

Comments
 (0)