summaryrefslogtreecommitdiffstats
path: root/ext/syck/rubyext.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-10 05:22:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-10 05:22:17 +0000
commit10a53d3ef4514b6b50cf716a80981bfa9008f3e1 (patch)
tree28f8c503efdbf7bfc9a70f33aec63933bbb7c1ac /ext/syck/rubyext.c
parent9f2937998baf5b90febc01ac7192408a36376d75 (diff)
downloadruby-10a53d3ef4514b6b50cf716a80981bfa9008f3e1.tar.gz
ruby-10a53d3ef4514b6b50cf716a80981bfa9008f3e1.tar.xz
ruby-10a53d3ef4514b6b50cf716a80981bfa9008f3e1.zip
* lib/irb.rb (IRB::Irb::eval_input): warn and exit if $SAFE >=3
after input evaluation. * lib/irb.rb (IRB::Irb::eval_input): untaint input string. now irb works for levels 1 and 2. * ext/syck/rubyext.c (syck_loader_transfer): should not use rb_cProc directly, since type_proc may be Proc, Block, or Method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/rubyext.c')
-rw-r--r--ext/syck/rubyext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 29ac001bd..c26000989 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -773,7 +773,7 @@ syck_loader_transfer( self, type, val )
// rb_funcall(rb_mKernel, rb_intern("p"), 2, name, type_proc);
}
- if ( rb_obj_is_instance_of( type_proc, rb_cProc ) )
+ if ( rb_respond_to( type_proc, rb_intern("call") ) )
{
val = rb_funcall(type_proc, rb_intern("call"), 2, type_uri, val);
}