Skip to content

Commit 050d276

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-98353' into 2.1.18-develop-pr66
2 parents d6a782e + 064d6d3 commit 050d276

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+2
-1
lines changed

app/code/Magento/Review/Block/Adminhtml/Add.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,14 @@ protected function _construct()
9494
if( response.error ) {
9595
alert(response.message);
9696
} else if( response.id ){
97+
var productName = response.name;
9798
$("product_id").value = response.id;
9899
99100
$("product_name").innerHTML = \'<a href="' .
100101
$this->getUrl(
101102
'catalog/product/edit'
102103
) .
103-
'id/\' + response.id + \'" target="_blank">\' + response.name + \'</a>\';
104+
'id/\' + response.id + \'" target="_blank">\' + productName.escapeHTML() + \'</a>\';
104105
} else if ( response.message ) {
105106
alert(response.message);
106107
}

0 commit comments

Comments
 (0)