[前][次][番号順一覧][スレッド一覧]

ruby-changes:39203

From: nobu <ko1@a...>
Date: Fri, 17 Jul 2015 23:52:00 +0900 (JST)
Subject: [ruby-changes:39203] nobu:r51284 (trunk): vm_eval.c: safe level 4

nobu	2015-07-17 23:51:34 +0900 (Fri, 17 Jul 2015)

  New Revision: 51284

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51284

  Log:
    vm_eval.c: safe level 4
    
    * vm_eval.c (rb_eval_cmd): $SAFE=4 has been deprecated.

  Modified files:
    trunk/ChangeLog
    trunk/vm_eval.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51283)
+++ ChangeLog	(revision 51284)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul 17 23:51:31 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* vm_eval.c (rb_eval_cmd): $SAFE=4 has been deprecated.
+
 Fri Jul 17 22:18:09 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* compile.c (iseq_compile_each): use enum ruby_tag_type names.
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 51283)
+++ vm_eval.c	(revision 51284)
@@ -1502,7 +1502,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int le https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1502
     volatile int safe = rb_safe_level();
 
     if (OBJ_TAINTED(cmd)) {
-	level = 4;
+	level = RUBY_SAFE_LEVEL_MAX;
     }
 
     if (!RB_TYPE_P(cmd, T_STRING)) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]