Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
rubygem-mail-2_5
fix_bsc_959129_mail_2.5.4.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_bsc_959129_mail_2.5.4.patch of Package rubygem-mail-2_5
diff --git a/lib/mail/field.rb b/lib/mail/field.rb index 7853dc9..d808e57 100644 --- a/lib/mail/field.rb +++ b/field.vulnerable.rb @@ -187,7 +187,12 @@ module Mail STDERR.puts "WARNING: Could not parse (and so ignoring) '#{raw_field}'" end + def unfold(string) + string.gsub(/[\r\n \t]+/m, ' ') + end + def create_field(name, value, charset) + value = unfold(value) if value.is_a?(String) begin self.field = new_field(name, value, charset) rescue Mail::Field::ParseError => e
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor