[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.
This commit is contained in:
parent
398cd3cc7d
commit
17e8a6eff4
Notes:
git
2019-11-18 08:01:12 +09:00
@ -1483,7 +1483,6 @@ prompt(int argc, VALUE *argv, VALUE io)
|
|||||||
if (argc > 0 && !NIL_P(argv[0])) {
|
if (argc > 0 && !NIL_P(argv[0])) {
|
||||||
VALUE str = argv[0];
|
VALUE str = argv[0];
|
||||||
StringValueCStr(str);
|
StringValueCStr(str);
|
||||||
rb_check_safe_obj(str);
|
|
||||||
rb_io_write(io, str);
|
rb_io_write(io, str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user