Skip to content

Commit 0480d06

Browse files
committed
escape sku as string
1 parent 0f8362d commit 0480d06

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/GoogleGtag/Block

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function getOrdersTrackingData(): array
147147
foreach ($collection->getItems() as $order) {
148148
foreach ($order->getAllVisibleItems() as $item) {
149149
$result['products'][] = [
150-
'item_id' => $this->_escaper->escapeHtmlAttr($item->getSku()),
150+
'item_id' => $this->_escaper->escapeHtml($item->getSku()),
151151
'item_name' => $this->_escaper->escapeHtmlAttr($item->getName()),
152152
'affiliation' => $this->_escaper->escapeHtmlAttr(
153153
$this->_storeManager->getStore()->getFrontendName()

0 commit comments

Comments
 (0)