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 /file.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 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -5428,10 +5428,6 @@ rb_find_file_ext_safe(VALUE *filep, const char *const *ext, int safe_level) return 0; } - if (safe_level >= 4) { - rb_raise(rb_eSecurityError, "loading from non-absolute path %s", f); - } - RB_GC_GUARD(load_path) = rb_get_expanded_load_path(); if (!load_path) return 0; @@ -5493,10 +5489,6 @@ rb_find_file_safe(VALUE path, int safe_level) return path; } - if (safe_level >= 4) { - rb_raise(rb_eSecurityError, "loading from non-absolute path %s", f); - } - RB_GC_GUARD(load_path) = rb_get_expanded_load_path(); if (load_path) { long i; |