зеркало из https://github.com/github/ruby.git
* lib/rss/parser.rb (RSS::ListenerMixin::tag_end):
fixed invalid namespace handling bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1883e41c1b
Коммит
e65affb360
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Feb 14 23:58:17 2005 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
* lib/rss/parser.rb (RSS::ListenerMixin::tag_end):
|
||||||
|
fixed invalid namespace handling bug.
|
||||||
|
|
||||||
Mon Feb 14 13:12:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
Mon Feb 14 13:12:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* ext/openssl/lib/openssl/ssl.rb
|
* ext/openssl/lib/openssl/ssl.rb
|
||||||
|
|
|
@ -229,7 +229,7 @@ module RSS
|
||||||
ns = @ns_stack.last.dup
|
ns = @ns_stack.last.dup
|
||||||
attrs = {}
|
attrs = {}
|
||||||
attributes.each do |n, v|
|
attributes.each do |n, v|
|
||||||
if n =~ /\Axmlns:?/
|
if /\Axmlns(?:\z|:)/ =~ n
|
||||||
ns[$POSTMATCH] = v
|
ns[$POSTMATCH] = v
|
||||||
else
|
else
|
||||||
attrs[n] = v
|
attrs[n] = v
|
||||||
|
@ -256,6 +256,7 @@ module RSS
|
||||||
tags = @tag_stack.pop
|
tags = @tag_stack.pop
|
||||||
pr = @proc_stack.pop
|
pr = @proc_stack.pop
|
||||||
pr.call(text, tags) unless pr.nil?
|
pr.call(text, tags) unless pr.nil?
|
||||||
|
@ns_stack.pop
|
||||||
end
|
end
|
||||||
|
|
||||||
def text(data)
|
def text(data)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче