diff options
author | Ivo Kurzemnieks <ivo.kurzemnieks@zabbix.com> | 2021-05-28 10:33:58 +0300 |
---|---|---|
committer | Ivo Kurzemnieks <ivo.kurzemnieks@zabbix.com> | 2021-05-28 10:33:58 +0300 |
commit | a71344e8727afcb6e96c6130ba9b0d6dfeb866f4 (patch) | |
tree | 719c0b260579dcf514df88caa7b891baa7f6f549 /ui/app/controllers/CControllerMenuPopup.php | |
parent | 9730e3ea47ae394159b07b57a17b763f50aac5bd (diff) | |
parent | 2f4cef24f8a8410cec2934568f42763cc0d8cd7f (diff) |
.......... [ZBX-19446] updated to latest from release/5.4
Diffstat (limited to 'ui/app/controllers/CControllerMenuPopup.php')
-rw-r--r-- | ui/app/controllers/CControllerMenuPopup.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/controllers/CControllerMenuPopup.php b/ui/app/controllers/CControllerMenuPopup.php index e7bb29ea293..71fc3d898c8 100644 --- a/ui/app/controllers/CControllerMenuPopup.php +++ b/ui/app/controllers/CControllerMenuPopup.php @@ -620,7 +620,8 @@ class CControllerMenuPopup extends CController { $menu_data['urls'][] = [ 'label' => $url['name'], 'url' => $url['url'], - 'target' => '_blank' + 'target' => '_blank', + 'rel' => 'noopener'.(ZBX_NOREFERER ? ' noreferrer' : '') ]; } } @@ -632,7 +633,7 @@ class CControllerMenuPopup extends CController { $url['url'] = 'javascript: alert(\''. _s('Provided URL "%1$s" is invalid.', zbx_jsvalue($url['url'], false, false)). '\');'; - unset($url['target']); + unset($url['target'], $url['rel']); } } unset($url); |