Project

General

Profile

Actions

Bug #14416

closed

Net::POPMail methods modify frozen literal when using default arg

Added by Mzim (Michael Zimmerman) about 6 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
[ruby-core:85210]

Description

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:
https://github.com/ruby/ruby/blob/582951e2c8995d6bab5ddaf98cd3816310f8d506/lib/net/pop.rb#L802

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0