File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/GoogleAnalytics/Block Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 (),
You can’t perform that action at this time.
0 commit comments