diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-02 12:42:27 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-02 12:42:27 +0000 |
commit | 92cecf79b428cfe1c8fc83a9b25ca5a99e867d83 (patch) | |
tree | 4e0c3f4f343748b6a4e68edde46e0a757d8c4992 /lib/rexml | |
parent | 5525d821344f6807af4e81d9fe572703f6e9ba9e (diff) | |
download | ruby-92cecf79b428cfe1c8fc83a9b25ca5a99e867d83.tar.gz |
* lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:
fix the default xml namespace URI validation.
Reported by Miho Hiramatsu. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/parsers/baseparser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index e4d89cd7d4..2df26b82f9 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -376,7 +376,7 @@ module REXML attrs.each { |a,b,c,d,e| if b == "xmlns" if c == "xml" - if d != "http://www.w3.org/XML/1998/namespace" + if e != "http://www.w3.org/XML/1998/namespace" msg = "The 'xml' prefix must not be bound to any other namespace "+ "(http://www.w3.org/TR/REC-xml-names/#ns-decl)" raise REXML::ParseException.new( msg, @source, self ) |