Actions
Bug #11767
closedRange#to_s and Range#inspect are not infected by the receiver
Bug #11767:
Range#to_s and Range#inspect are not infected by the receiver
Description
In general, to_s and inspect on a tainted object should result a tainted string.
Range seems the only exception.
code¶
p ("0".taint.."1").to_s.tainted?
p ("0".."1".taint).to_s.tainted?
p ("0".."1").taint.to_s.tainted?
expected result¶
prints true 3 times.
actual result¶
prints true, true, and false.
Actions