Skip to content

Commit abf4a94

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-95377' into 2.1.16-develop-pr58
2 parents 8c28042 + e3db1f0 commit abf4a94

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/AdminNotification/Block/Grid/Renderer

1 file changed

+6
-3
lines changed

app/code/Magento/AdminNotification/Block/Grid/Renderer/Actions.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
namespace Magento\AdminNotification\Block\Grid\Renderer;
1212

13+
/**
14+
* Renderer class for action in the admin notifications grid
15+
*/
1316
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
1417
{
1518
/**
@@ -39,9 +42,9 @@ public function __construct(
3942
*/
4043
public function render(\Magento\Framework\DataObject $row)
4144
{
42-
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' . $row->getUrl() . '">' . __(
43-
'Read Details'
44-
) . '</a> | ' : '';
45+
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' .
46+
$this->escapeUrl($row->getUrl()) . '">' .
47+
__('Read Details') . '</a> | ' : '';
4548

4649
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(
4750
'*/*/markAsRead/',

0 commit comments

Comments
 (0)