Skip to content

Commit 305cc21

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-95378' into 2.2.8-develop-pr67
2 parents ac4d03b + 01fb63e commit 305cc21

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/AdminNotification/Block/Grid/Renderer

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
namespace Magento\AdminNotification\Block\Grid\Renderer;
1010

11+
/**
12+
* Renderer class for action in the admin notifications grid.
13+
*/
1114
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
1215
{
1316
/**
@@ -37,7 +40,8 @@ public function __construct(
3740
*/
3841
public function render(\Magento\Framework\DataObject $row)
3942
{
40-
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' . $row->getUrl() . '">' .
43+
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' .
44+
$this->escapeUrl($row->getUrl()) . '">' .
4145
__('Read Details') . '</a>' : '';
4246

4347
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(

0 commit comments

Comments
 (0)