]> source.dussan.org Git - redmine.git/commitdiff
Escape filter values using .text instead of .html.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 13 Aug 2012 14:59:59 +0000 (14:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 13 Aug 2012 14:59:59 +0000 (14:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10201 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 5f64c41ba5b634335c0ea1db4101d5e3e4b53427..7346257dc66399b8749cf5b22cf2dcdcfc6a59e2 100644 (file)
@@ -130,7 +130,7 @@ function buildFilterRow(field, operator, values) {
 
   select = tr.find('td.operator select');
   for (i=0;i<operators.length;i++){
-    var option = $('<option>').val(operators[i]).html(operatorLabels[operators[i]]);
+    var option = $('<option>').val(operators[i]).text(operatorLabels[operators[i]]);
     if (operators[i] == operator) {option.attr('selected', true)};
     select.append(option);
   }
@@ -151,10 +151,10 @@ function buildFilterRow(field, operator, values) {
       var filterValue = filterValues[i];
       var option = $('<option>');
       if ($.isArray(filterValue)) {
-        option.val(filterValue[1]).html(filterValue[0]);
+        option.val(filterValue[1]).text(filterValue[0]);
         if (values.indexOf(filterValue[1]) > -1) {option.attr('selected', true)};
       } else {
-        option.val(filterValue).html(filterValue);
+        option.val(filterValue).text(filterValue);
         if (values.indexOf(filterValue) > -1) {option.attr('selected', true)};
       }
       select.append(option);