* 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:
tadf 2011-06-06 12:05:12 +00:00
parent 5574d874fb
commit 2cdd0a87ef
3 changed files with 18 additions and 9 deletions

View file

@ -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?)