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

ruby-changes:58813

From: Jeremy <ko1@a...>
Date: Mon, 18 Nov 2019 09:19:29 +0900 (JST)
Subject: [ruby-changes:58813] 17e8a6eff4 (master): [ruby/io-console] Remove taint support

https://git.ruby-lang.org/ruby.git/commit/?id=17e8a6eff4

From 17e8a6eff4954a37966c10f35db6551fce1d80a7 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Fri, 18 Oct 2019 12:25:15 -0700
Subject: [ruby/io-console] Remove taint support

Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.

diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 4f04709..42b000f 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -1483,7 +1483,6 @@ prompt(int argc, VALUE *argv, VALUE io) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L1483
     if (argc > 0 && !NIL_P(argv[0])) {
 	VALUE str = argv[0];
 	StringValueCStr(str);
-	rb_check_safe_obj(str);
 	rb_io_write(io, str);
     }
 }
-- 
cgit v0.10.2


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

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