diff options
author | Roberts Lataria <roberts.lataria@zabbix.com> | 2022-07-13 16:02:38 +0300 |
---|---|---|
committer | Roberts Lataria <roberts.lataria@zabbix.com> | 2022-07-13 16:02:38 +0300 |
commit | 499b407c2cd32bb7ee1bfcf3dc8a4b7e3dfc88d1 (patch) | |
tree | 6c3902c79f171d5288fea32b8477eddb1b0fa8d9 | |
parent | c5b7038117560649fcb6bb8791b88f27aa6f0f4b (diff) | |
parent | 90580dd7f3c9d58fd5c20861cafc4f214ac45cb9 (diff) |
..F....... [DEV-2178] fixed xss in discovery rules
* commit '90580dd7f3c9d58fd5c20861cafc4f214ac45cb9':
..F....... [DEV-2178] fixed xss in discovery rules
-rw-r--r-- | frontends/php/include/views/js/configuration.discovery.edit.js.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/views/js/configuration.discovery.edit.js.php b/frontends/php/include/views/js/configuration.discovery.edit.js.php index 5a546c1e730..e6d44c0a9dd 100644 --- a/frontends/php/include/views/js/configuration.discovery.edit.js.php +++ b/frontends/php/include/views/js/configuration.discovery.edit.js.php @@ -704,7 +704,7 @@ jQuery(document).ready(function() { addPopupValues(<?= zbx_jsvalue(array_values($this->data['drule']['dchecks'])) ?>); - jQuery("input:radio[name='uniqueness_criteria'][value=<?= zbx_jsvalue($this->data['drule']['uniqueness_criteria']) ?>]").attr('checked', 'checked'); + jQuery("input:radio[name='uniqueness_criteria'][value="+jQuery.escapeSelector(<?= zbx_jsvalue($this->data['drule']['uniqueness_criteria']) ?>)+"]").attr('checked', 'checked'); jQuery('#newCheck').click(showNewCheckForm); jQuery('#clone').click(function() { |