aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/string.c b/string.c
index ecdd0cbbe5..8f95b42fc1 100644
--- a/string.c
+++ b/string.c
@@ -5792,9 +5792,6 @@ rb_str_intern(VALUE s)
VALUE str = RB_GC_GUARD(s);
ID id;
- if (OBJ_TAINTED(str) && rb_safe_level() >= 1) {
- rb_raise(rb_eSecurityError, "Insecure: can't intern tainted string");
- }
id = rb_intern_str(str);
return ID2SYM(id);
}