ruby/test/readline
Jeremy Evans a50bc9f3c8 Do not always taint the result of File#path
The result should only be tainted if the path given to the method
was tainted.

The code to always taint the result was added in
a4934a42cb (svn revision 4892) in
2003 by matz.  However, the change wasn't mentioned in the
commit message, and it may have been committed by accident.

Skip part of a readline test that uses Reline.  Reline in general
would pass the test, but Reline's test mode doesn't raise a
SecurityError if passing a tainted prompt and $SAFE >= 1. This
was hidden earlier because File#path was always returning a
tainted string.

Fixes [Bug #14485]
2019-07-30 11:55:59 -07:00
..
helper.rb Add Reline.test_mode to use with special I/O 2019-05-18 12:48:27 +09:00
test_readline.rb Do not always taint the result of File#path 2019-07-30 11:55:59 -07:00
test_readline_history.rb Remove parent namespace from Readline test classes 2019-05-18 02:32:25 +09:00