diff --git a/Gemfile b/Gemfile index e5b7694..730560d 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,7 @@ gem 'nokogiri' gem 'mongoid', '2.1.2' gem 'haml' gem 'will_paginate', '>=3' +gem 'htmlentities', "~> 4.3.0" gem 'devise', '~> 1.4.0' gem 'lighthouse-api' gem 'redmine_client', :git => "git://github.com/oruen/redmine_client.git" diff --git a/Gemfile.lock b/Gemfile.lock index a53512b..728ac6e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -222,6 +222,7 @@ DEPENDENCIES factory_girl_rails haml hoptoad_notifier (~> 2.4) + htmlentities (~> 4.3.0) inherited_resources lighthouse-api mongoid (= 2.1.2) diff --git a/app/views/notices/_environment.html.haml b/app/views/notices/_environment.html.haml index a68535f..59ef2c4 100644 --- a/app/views/notices/_environment.html.haml +++ b/app/views/notices/_environment.html.haml @@ -1,6 +1,8 @@ .window %table.environment - - notice.env_vars.sort_by {|pair| pair[0]}.each do |pair| + - html_entities = HTMLEntities.new + - notice.env_vars.sort_by {|pair| pair[0]}.each do |key, value| %tr - %th= pair[0] - %td.main= pair[1] + %th= h(html_entities.decode(key)) + %td.main= h(html_entities.decode(value)) + -- libgit2 0.21.2