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
Actions
Like0
Like0