From: helge Date: Tue, 12 Jul 2005 12:20:21 +0000 (+0000) Subject: made headers immutable X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38add5ff83b9ee68fc6815f8baa04c8ab1fe8300;p=sope made headers immutable git-svn-id: http://svn.opengroupware.org/SOPE/trunk@888 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-mime/ChangeLog b/sope-mime/ChangeLog index 5e23813b..957c701c 100644 --- a/sope-mime/ChangeLog +++ b/sope-mime/ChangeLog @@ -1,3 +1,7 @@ +2005-07-12 Helge Hess + + * NGMime: headers hashmap is now properly made immutable (v4.5.225) + 2005-07-11 Helge Hess * NGMime: added a safeguard for some edge case (v4.5.224) diff --git a/sope-mime/NGMail/ChangeLog b/sope-mime/NGMail/ChangeLog index 8c3da6c0..0a483bf1 100644 --- a/sope-mime/NGMail/ChangeLog +++ b/sope-mime/NGMail/ChangeLog @@ -1,3 +1,7 @@ +2005-07-12 Helge Hess + + * NGMimeMessage.m: copy hashmap on object creation to make it immutable + 2005-04-24 Helge Hess * fixed gcc 4.0 warnings diff --git a/sope-mime/NGMail/NGMimeMessage.m b/sope-mime/NGMail/NGMimeMessage.m index 38b85102..7c2c180a 100644 --- a/sope-mime/NGMail/NGMimeMessage.m +++ b/sope-mime/NGMail/NGMimeMessage.m @@ -52,7 +52,7 @@ static NGMimeType *defaultDataType = nil; } - (id)initWithHeader:(NGHashMap *)_header { if ((self = [super init])) { - self->header = [_header retain]; + self->header = [_header copy]; } return self; } diff --git a/sope-mime/Version b/sope-mime/Version index ee8cc21f..3be919ee 100644 --- a/sope-mime/Version +++ b/sope-mime/Version @@ -2,7 +2,7 @@ MAJOR_VERSION:=4 MINOR_VERSION:=5 -SUBMINOR_VERSION:=224 +SUBMINOR_VERSION:=225 # v4.5.214 requires libNGExtensions v4.5.146 # v4.2.149 requires libNGStreams v4.2.34