summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-17 12:36:07 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-17 12:36:07 +0000
commit4f0439617edfff2fa4dbc8b0c07a65bcf37cda53 (patch)
treed6f6610144a7dcc4aee4b91672cee41044ec7386 /lib
parente1a08e4130ba1ac0652fafc5185c15683b794f8a (diff)
merge revision(s) 34419: [Backport #6307]
* lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb: fix the default xml namespace URI validation. [ruby-dev:45169] [Bug #5956] Reported by Miho Hiramatsu. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rexml/parsers/baseparser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb
index 612245fb73..95afd7add5 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 )