diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-16 09:22:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-16 09:22:45 +0000 |
commit | ab1a751ece53402ad1903cae700a3f023b20803c (patch) | |
tree | dd5ba61e658bb75e0fbe6b476ae67599e0e1f34e /variable.c | |
parent | ce71ad15c71e4ec0fdc8d6249c6b3b0e6729e232 (diff) |
* eval.c (block_pass): should not pass tainted block, if $SAFE > 0.
* variable.c (rb_mod_remove_cvar): should pass the char*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index b04fe84b48..65bf380efb 100644 --- a/variable.c +++ b/variable.c @@ -1528,7 +1528,7 @@ rb_mod_remove_cvar(mod, name) VALUE val; if (!rb_is_class_id(id)) { - rb_raise(rb_eNameError, "wrong class variable name %s", name); + rb_raise(rb_eNameError, "wrong class variable name %s", rb_id2name(name)); } if (!OBJ_TAINTED(mod) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: can't remove class variable"); |