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 d9259f4 commit 064d6d3Copy full SHA for 064d6d3
app/code/Magento/Review/Block/Adminhtml/Add.php
@@ -94,13 +94,14 @@ protected function _construct()
94
if( response.error ) {
95
alert(response.message);
96
} else if( response.id ){
97
+ var productName = response.name;
98
$("product_id").value = response.id;
99
100
$("product_name").innerHTML = \'<a href="' .
101
$this->getUrl(
102
'catalog/product/edit'
103
) .
- 'id/\' + response.id + \'" target="_blank">\' + response.name + \'</a>\';
104
+ 'id/\' + response.id + \'" target="_blank">\' + productName.escapeHTML() + \'</a>\';
105
} else if ( response.message ) {
106
107
}
0 commit comments