Commit 8924967 1 parent 2ff7ae8 commit 8924967 Copy full SHA for 8924967
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
<language >en_US</language >
14
14
<language >fr_FR</language >
15
15
</languages >
16
- <version >3.1.2 </version >
16
+ <version >3.1.3 </version >
17
17
<authors >
18
18
<author >
19
19
<name >Bertrand Tourlonias</name >
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public function getProductItem(
117
117
$ item = [
118
118
'item_id ' => $ product ->getId (),
119
119
'item_name ' => $ product ->getRef (),
120
- 'item_brand ' => null !== $ brand ? $ brand ->setLocale ($ lang ->getLocale ())->getTitle () : ConfigQuery::read ('store_name ' ),
120
+ 'item_brand ' => htmlspecialchars ( null !== $ brand ? $ brand ->setLocale ($ lang ->getLocale ())->getTitle () : ConfigQuery::read ('store_name ' ) ),
121
121
'affiliation ' => ConfigQuery::read ('store_name ' ),
122
122
'price ' => round ($ productPrice , 2 ),
123
123
'currency ' => $ currency ->getCode (),
@@ -134,7 +134,7 @@ public function getProductItem(
134
134
if ($ index === 0 ) {
135
135
$ categoryIndex = 'item_category ' ;
136
136
}
137
- $ item [$ categoryIndex ] = $ categoryTitle ;
137
+ $ item [$ categoryIndex ] = htmlspecialchars ( $ categoryTitle) ;
138
138
}
139
139
140
140
if (!$ isDefaultPse ) {
You can’t perform that action at this time.
0 commit comments