From 652800cc09788805368983730c6b25183ae60d92 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 18 Oct 2019 09:50:07 -0700 Subject: Only untaint line on Ruby <2.7 Untaint is deprecated and has no effect on Ruby 2.7+. --- lib/irb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb.rb') diff --git a/lib/irb.rb b/lib/irb.rb index e95927f8ec..97af046d05 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -536,7 +536,7 @@ module IRB @scanner.each_top_level_statement do |line, line_no| signal_status(:IN_EVAL) do begin - line.untaint + line.untaint if RUBY_VERSION < '2.7' @context.evaluate(line, line_no, exception: exc) output_value if @context.echo? && (@context.echo_on_assignment? || !assignment_expression?(line)) rescue Interrupt => exc -- cgit v1.2.3