diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-09-09 23:13:37 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-09-09 23:13:37 -0500 |
commit | 704fc3785eb4c0bca6a37060b551f09489352b6e (patch) | |
tree | 147190051ef351e812f3cc032642c562805ccb7f /activesupport | |
parent | 23a0e2c4a9c41936fec0c6e44b946108c701d33b (diff) | |
download | rails-704fc3785eb4c0bca6a37060b551f09489352b6e.tar.gz rails-704fc3785eb4c0bca6a37060b551f09489352b6e.tar.bz2 rails-704fc3785eb4c0bca6a37060b551f09489352b6e.zip |
No local variable in the global namespace plz
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/rexml.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/rexml.rb b/activesupport/lib/active_support/core_ext/rexml.rb index baced8111a..187f3e0f5e 100644 --- a/activesupport/lib/active_support/core_ext/rexml.rb +++ b/activesupport/lib/active_support/core_ext/rexml.rb @@ -5,9 +5,8 @@ require 'rexml/entity' # http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/ # This fix is identical to rexml-expansion-fix version 1.0.1 -#earlier versions of rexml defined REXML::Version, newer ones REXML::VERSION -version = defined?(REXML::VERSION) ? REXML::VERSION : REXML::Version -unless version > "3.1.7.2" +# Earlier versions of rexml defined REXML::Version, newer ones REXML::VERSION +unless (defined?(REXML::VERSION) ? REXML::VERSION : REXML::Version) > "3.1.7.2" module REXML class Entity < Child undef_method :unnormalized |