Actions
Bug #8161
closedString#+ should inherit untrustedness
Description
As noted by Nikolai Weibull [ruby-core:53679], String#+ doesn't maintain untrustedness.
s = "foo".untrust
(s * 2).untrusted? # => true
(s + s).untrusted? # => false, should be true
(s + '').untrusted? # => false, should also be true
Updated by Anonymous about 11 years ago
- Status changed from Open to Closed
Untrustedness is now deprecated and behaves the same as tainting.
Taintedness is properly propagated in your examples, so I'm closing this.
Actions
Like0
Like0