From ab742d9d2ee6f56d987b17ebd1795d5922c47172 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 17 Jul 2015 14:51:34 +0000 Subject: [PATCH] vm_eval.c: safe level 4 * vm_eval.c (rb_eval_cmd): $SAFE=4 has been deprecated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ vm_eval.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 83cc9a76f8..51406d4c9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jul 17 23:51:31 2015 Nobuyoshi Nakada + + * vm_eval.c (rb_eval_cmd): $SAFE=4 has been deprecated. + Fri Jul 17 22:18:09 2015 Nobuyoshi Nakada * compile.c (iseq_compile_each): use enum ruby_tag_type names. diff --git a/vm_eval.c b/vm_eval.c index d389a4acc8..ff4abf53ed 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1502,7 +1502,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level) volatile int safe = rb_safe_level(); if (OBJ_TAINTED(cmd)) { - level = 4; + level = RUBY_SAFE_LEVEL_MAX; } if (!RB_TYPE_P(cmd, T_STRING)) {