Commit 3265c3fa authored by Holger Just's avatar Holger Just

Bump json gem to a safe version for CVE-2013-0269, CVE-2013-0333

parent 296db927
......@@ -2,6 +2,7 @@ source :rubygems
gem "rails", "2.3.17"
gem "json", "~> 1.7.7"
gem "coderay", "~> 0.9.7"
gem "i18n", "~> 0.4.2"
gem "rubytree", "~> 0.5.2", :require => 'tree'
......
......@@ -165,3 +165,7 @@ module ActionView::Helpers::TagHelper
ActiveSupport::Multibyte.clean(html.to_s).gsub(/[\"\'><]|&(?!([a-zA-Z]+|(#\d+));)/) { |special| ERB::Util::HTML_ESCAPE[special] }
end
end
# Workaround for CVE-2013-0333
# https://groups.google.com/forum/?fromgroups=#!msg/rubyonrails-security/1h2DR63ViGo/GOUVafeaF1IJ
ActiveSupport::JSON.backend = "JSONGem"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment