From 63024c30f07aca6710ccc0242228591dbf26f24d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 6 Nov 2012 13:50:26 -0500 Subject: [PATCH] Make use of the new -[NSData compress] method and remove \n chars from base64 data --- SoObjects/SOGo/SOGoWebAuthenticator.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoWebAuthenticator.m b/SoObjects/SOGo/SOGoWebAuthenticator.m index 48bf6d2c5..cfe2482f0 100644 --- a/SoObjects/SOGo/SOGoWebAuthenticator.m +++ b/SoObjects/SOGo/SOGoWebAuthenticator.m @@ -285,7 +285,9 @@ inContext: context]; assertion = [[session assertion] dataUsingEncoding: NSUTF8StringEncoding]; - password = [[assertion gzip] stringByEncodingBase64]; + password = [[[assertion compress] stringByEncodingBase64] + stringByReplacingString: @"\n" + withString: @""]; } #endif }