We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5843e81 commit 0d5197fCopy full SHA for 0d5197f
app/code/Magento/GoogleAnalytics/Block/Ga.php
@@ -130,7 +130,7 @@ public function getOrdersTrackingCode()
130
'price': '%s',
131
'quantity': %s
132
});",
133
- $this->escapeJs($item->getSku()),
+ $this->escapeJsQuote($item->getSku()),
134
$this->escapeJsQuote($item->getName()),
135
$item->getPrice(),
136
$item->getQtyOrdered()
@@ -236,7 +236,7 @@ public function getOrdersTrackingData()
236
foreach ($collection as $order) {
237
foreach ($order->getAllVisibleItems() as $item) {
238
$result['products'][] = [
239
- 'id' => $this->escapeJs($item->getSku()),
+ 'id' => $this->escapeJsQuote($item->getSku()),
240
'name' => $this->escapeJsQuote($item->getName()),
241
'price' => $item->getPrice(),
242
'quantity' => $item->getQtyOrdered(),
0 commit comments