From: nagachika00@... Date: 2018-08-18T08:35:47+00:00 Subject: [ruby-core:88538] [Ruby trunk Bug#14416] Net::POPMail methods modify frozen literal when using default arg Issue #14416 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: REQUIRED to 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: DONE ruby_2_5 r64443 merged revision(s) 62099. ---------------------------------------- Bug #14416: Net::POPMail methods modify frozen literal when using default arg https://bugs.ruby-lang.org/issues/14416#change-73595 * Author: Mzim (Michael Zimmerman) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: DONE ---------------------------------------- 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 -- https://bugs.ruby-lang.org/ Unsubscribe: