Permalink
Browse files

[webui] another place to be marked as html_safe

  • Loading branch information...
1 parent 3b51256 commit 356a8f3c5012e5446622103339343a1dfe741cff @adrianschroeter adrianschroeter committed Feb 27, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/webui/app/views/shared/_buildresult_box.html.erb
@@ -79,9 +79,9 @@
$.ajax({
url: '<%= url_for(:controller => controller, :action => 'buildresult') %>',
data: {
- <%= "'project': '" + project + "'," unless not defined?(project) %>
- <%= "'package': '" + package + "'," unless not defined?(package) %>
- <%= "'index': '" + index.to_s + "'," unless not defined?(index) %>
+ <%= "'project': '".html_safe + project + "',".html_safe unless not defined?(project) %>
+ <%= "'package': '".html_safe + package + "',".html_safe unless not defined?(package) %>
+ <%= "'index': '".html_safe + index.to_s + "',".html_safe unless not defined?(index) %>
},
success: function(data) {
$('#result_display_<%= index %>_0').html(data);

0 comments on commit 356a8f3

Please sign in to comment.