summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/file.c b/file.c
index 2d7ff32cef..bad8f3d835 100644
--- a/file.c
+++ b/file.c
@@ -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;