summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/variable.c b/variable.c
index d2669aaf6f..214c76c934 100644
--- a/variable.c
+++ b/variable.c
@@ -870,8 +870,6 @@ rb_ivar_get(obj, id)
{
VALUE val;
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
- rb_raise(rb_eSecurityError, "Insecure: can't access instance variable");
switch (TYPE(obj)) {
case T_OBJECT:
case T_CLASS:
@@ -951,8 +949,6 @@ rb_obj_instance_variables(obj)
{
VALUE ary;
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
- rb_raise(rb_eSecurityError, "Insecure: can't get metainfo");
ary = rb_ary_new();
switch (TYPE(obj)) {
case T_OBJECT:
@@ -1152,8 +1148,6 @@ VALUE
rb_mod_const_at(mod, ary)
VALUE mod, ary;
{
- if (!OBJ_TAINTED(mod) && rb_safe_level() >= 4)
- rb_raise(rb_eSecurityError, "Insecure: can't get metainfo");
if (RCLASS(mod)->iv_tbl) {
st_foreach(RCLASS(mod)->iv_tbl, sv_i, ary);
}
@@ -1477,9 +1471,6 @@ rb_mod_class_variables(obj)
{
VALUE ary = rb_ary_new();
- if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
- rb_raise(rb_eSecurityError, "Insecure: can't get metainfo");
-
if (FL_TEST(obj, FL_SINGLETON)) {
obj = rb_cvar_singleton(rb_iv_get(obj, "__attached__"));
}