mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-05 10:29:43 +00:00
Monotone-Parent: 8e38cd34311edbce1f6a5d645e0e49644ad94473
Monotone-Revision: e2e39181c8973d9b23526f1110107e46fd7318e5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-10-19T14:13:04 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -372,8 +372,15 @@
|
||||
|
||||
- (NSString *) davContentLength
|
||||
{
|
||||
return [NSString stringWithFormat: @"%u",
|
||||
[content lengthOfBytesUsingEncoding: NSUTF8StringEncoding]];
|
||||
NSInteger length;
|
||||
|
||||
/* The following may cause a crash, as stated in
|
||||
http://www.sogo.nu/bugs/view.php?id=915:
|
||||
|
||||
length = [content lengthOfBytesUsingEncoding: NSUTF8StringEncoding]; */
|
||||
length = strlen ([content UTF8String]);
|
||||
|
||||
return [NSString stringWithFormat: @"%u", length];
|
||||
}
|
||||
|
||||
// - (NSString *) davResourceType
|
||||
|
||||
Reference in New Issue
Block a user