aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 236c2e9683..b3eabbcc71 100644
--- a/time.c
+++ b/time.c
@@ -60,7 +60,7 @@ static void
time_modify(VALUE time)
{
rb_check_frozen(time);
- if (!OBJ_TAINTED(time) && rb_safe_level() >= 4)
+ if (!OBJ_UNTRUSTED(time) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: can't modify Time");
}