diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-31 13:41:16 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-31 13:41:16 +0300 |
commit | 97d6f5b6ded829d1f7e792c59ae5eb4b2aae7c70 (patch) | |
tree | 8260c298f4fd7a1dbe8350dac3d4d5fd8903104e /app/assets/javascripts/labels_select.js | |
parent | 4d042afeced540c0acd887714d8ec7c962b7c507 (diff) |
Fixed escaping issue with labels filter
Closes #15552
Diffstat (limited to 'app/assets/javascripts/labels_select.js')
-rw-r--r-- | app/assets/javascripts/labels_select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/labels_select.js b/app/assets/javascripts/labels_select.js index 565dbeacdb3..bab23ff5ac0 100644 --- a/app/assets/javascripts/labels_select.js +++ b/app/assets/javascripts/labels_select.js @@ -164,7 +164,7 @@ instance.addInput(this.fieldName, label.id); } } - if ($form.find("input[type='hidden'][name='" + ($dropdown.data('fieldName')) + "'][value='" + (this.id(label)) + "']").length) { + if ($form.find("input[type='hidden'][name='" + ($dropdown.data('fieldName')) + "'][value='" + escape(this.id(label)) + "']").length) { selectedClass.push('is-active'); } if ($dropdown.hasClass('js-multiselect') && removesAll) { |