Net::POPMail methods modify frozen literal when using default arg
Net::POPMail #pop, #top, and #header can modify their "dest" argument. Problem is it has a default value of '', and so FrozenError can be thrown.
Problem methods start here:
Updated by Anonymous over 2 years ago
- Status changed from Open to Closed
Updated by tgxworld (Guo Xiang Tan) about 2 years ago
Applied in changeset trunk|r62099.
net/pop: make modified strings mutable
Thanks to Michael Zimmerman for the bug report
- lib/net/pop.rb: make modified strings mutable [ruby-core:85210] [Bug #14416]
- test/net/pop/test_pop.rb: new test
Can I check if this patch will be backported to Ruby 2.5?