diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-18 10:36:51 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-18 10:36:51 +0000 |
commit | 04f0de74dd22bc9e06b14d0c777d15fcde2e50a8 (patch) | |
tree | 6b81ddcf49e9bdef5d0c7204c8a4aac4d5b96a29 /variable.c | |
parent | 408b8110d5935df37a63db9ce6173a2f779b4e20 (diff) | |
download | ruby-04f0de74dd22bc9e06b14d0c777d15fcde2e50a8.tar.gz |
* error.c, file.c, gc.c, hash.c, thread.c, variable.c, vm_eval.c, bin/erb:
$SAFE=4 is obsolete.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/variable.c b/variable.c index 96289a6d8f..0bb91e279f 100644 --- a/variable.c +++ b/variable.c @@ -782,8 +782,6 @@ rb_gvar_set(struct global_entry *entry, VALUE val) struct trace_data trace; struct global_variable *var = entry->var; - if (rb_safe_level() >= 4) - rb_raise(rb_eSecurityError, "Insecure: can't change global variable value"); (*var->setter)(val, entry->id, var->data, var); if (var->trace && !var->block_trace) { @@ -860,9 +858,6 @@ rb_alias_variable(ID name1, ID name2) struct global_entry *entry1, *entry2; st_data_t data1; - if (rb_safe_level() >= 4) - rb_raise(rb_eSecurityError, "Insecure: can't alias global variable"); - entry2 = rb_global_entry(name2); if (!st_lookup(rb_global_tbl, (st_data_t)name1, &data1)) { entry1 = ALLOC(struct global_entry); |