diff --git a/ChangeLog b/ChangeLog index e0d2b81a2..5ae33d32d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-30 Richard Frith-Macdonald + + * Source/Additions/GSMime.m: restore standardisation of header name + lost in last optimisation. Fixes bug #31166 + 2010-09-28 Eric Wasylishen * Source/objc-load.m: Don't include objc-list with libobjc2 diff --git a/Source/Additions/GSMime.m b/Source/Additions/GSMime.m index 5007011a7..2973ae0f3 100644 --- a/Source/Additions/GSMime.m +++ b/Source/Additions/GSMime.m @@ -5205,9 +5205,12 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold, if (count > 0) { NSUInteger index; - IMP imp1 = [headers methodForSelector: @selector(objectAtIndex:)]; - IMP imp2 = [name methodForSelector: @selector(isEqualToString:)]; + IMP imp1; + IMP imp2; + name = [GSMimeHeader makeToken: name preservingCase: NO]; + imp1 = [headers methodForSelector: @selector(objectAtIndex:)]; + imp2 = [name methodForSelector: @selector(isEqualToString:)]; for (index = 0; index < count; index++) { GSMimeHeader *info; @@ -5230,15 +5233,17 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold, { NSUInteger count; - name = [GSMimeHeader makeToken: name]; + name = [GSMimeHeader makeToken: name preservingCase: NO]; count = [headers count]; if (count > 0) { NSUInteger index; NSMutableArray *array; - IMP imp1 = [headers methodForSelector: @selector(objectAtIndex:)]; - IMP imp2 = [name methodForSelector: @selector(isEqualToString:)]; + IMP imp1; + IMP imp2; + imp1 = [headers methodForSelector: @selector(objectAtIndex:)]; + imp2 = [name methodForSelector: @selector(isEqualToString:)]; array = [NSMutableArray array]; for (index = 0; index < count; index++)