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

ruby-changes:38882

From: kazu <ko1@a...>
Date: Thu, 18 Jun 2015 23:53:36 +0900 (JST)
Subject: [ruby-changes:38882] kazu:r50963 (trunk): * bin/erb: $SAFE=3 is obsolete.

kazu	2015-06-18 23:53:26 +0900 (Thu, 18 Jun 2015)

  New Revision: 50963

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

  Log:
    * bin/erb: $SAFE=3 is obsolete.

  Modified files:
    trunk/ChangeLog
    trunk/bin/erb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50962)
+++ ChangeLog	(revision 50963)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 18 23:51:51 2015  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* bin/erb: $SAFE=3 is obsolete.
+
 Thu Jun 18 23:45:11 2015  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* safe.c: removed needless doc related $SAFE=2
Index: bin/erb
===================================================================
--- bin/erb	(revision 50962)
+++ bin/erb	(revision 50963)
@@ -76,7 +76,7 @@ class ERB https://github.com/ruby/ruby/blob/trunk/bin/erb#L76
             require ARGV.req_arg
           when '-S'                        # security level
             arg = ARGV.req_arg
-            raise "invalid safe_level #{arg.dump}" unless arg =~ /\A[0-3]\z/
+            raise "invalid safe_level #{arg.dump}" unless arg =~ /\A[0-1]\z/
             safe_level = arg.to_i
           when '-T'                        # trim mode
             arg = ARGV.req_arg
@@ -112,7 +112,7 @@ class ERB https://github.com/ruby/ruby/blob/trunk/bin/erb#L112
   -v               enable verbose mode
   -d               set $DEBUG to true
   -r library       load a library
-  -S safe_level    set $SAFE (0..3)
+  -S safe_level    set $SAFE (0..1)
   -E ex[:in]       set default external/internal encodings
   -U               set default encoding to UTF-8.
   -T trim_mode     specify trim_mode (0..2, -)

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

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