Permalink
Browse files

No local variable in the global namespace plz

  • Loading branch information...
1 parent 23a0e2c commit 704fc3785eb4c0bca6a37060b551f09489352b6e @dhh dhh committed Sep 10, 2008
Showing with 2 additions and 3 deletions.
  1. +2 −3 activesupport/lib/active_support/core_ext/rexml.rb
@@ -5,9 +5,8 @@
# 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

0 comments on commit 704fc37

Please sign in to comment.