mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 07:26:00 +02:00
* ext/date/date_core.c: flattened format to strftimev.
* ext/date/date_core.c (date_strftime_internal): taints run. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5574d874fb
commit
2cdd0a87ef
3 changed files with 18 additions and 9 deletions
|
@ -375,6 +375,8 @@ class TestSH < Test::Unit::TestCase
|
|||
assert_equal(false, s.tainted?)
|
||||
s = Date.today.strftime('new 105'.taint)
|
||||
assert_equal(true, s.tainted?)
|
||||
s = Date.today.strftime("new \000 105".taint)
|
||||
assert_equal(true, s.tainted?)
|
||||
|
||||
s = DateTime.now.strftime('super $record')
|
||||
assert_equal(false, s.tainted?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue