Skip to content
Browse files

[webui] fix a regression with latest rails 2.3 security update: build…

… results loading is working again
  • Loading branch information...
1 parent 2621d6e commit 01b71bae34ab3d1c4f4c5662c77774b5c6421230 @adrianschroeter adrianschroeter committed Feb 26, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/webui/app/views/shared/_buildresult_box.html.erb
View
6 src/webui/app/views/shared/_buildresult_box.html.erb
@@ -50,9 +50,9 @@
$.ajax({
url: '<%= url_for(:controller => controller, :action => 'rpmlint_result') %>',
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 %>_1').html(data);

0 comments on commit 01b71ba

Please sign in to comment.
Something went wrong with that request. Please try again.