mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 22:32:45 +00:00
Small indexes fix
Monotone-Parent: a7e4557022d0aae7997d7c7b65b38c077004cf94 Monotone-Revision: 980bdf3533fa9e08756ddec4c168f1f2b3ef31d2 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-07-06T14:15:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -169,14 +169,14 @@ typedef enum
|
||||
authpwd = @"";
|
||||
value = @"";
|
||||
|
||||
if (max > 5)
|
||||
if (max > 4)
|
||||
{
|
||||
r = [[arguments objectAtIndex: 3] rangeOfString: @":"];
|
||||
authname = [[arguments objectAtIndex: 3] substringToIndex: r.location];
|
||||
authpwd = [[arguments objectAtIndex: 3] substringFromIndex: r.location+1];
|
||||
key = [arguments objectAtIndex: 4];
|
||||
|
||||
if (max > 6)
|
||||
if (max > 5)
|
||||
value = [arguments objectAtIndex: 5];
|
||||
}
|
||||
else
|
||||
@@ -223,7 +223,7 @@ typedef enum
|
||||
[source setObject: o forKey: key];
|
||||
}
|
||||
else
|
||||
NSLog(@"Invalid JSON input - no changes performed in the database.");
|
||||
NSLog(@"Invalid JSON input - no changes performed in the database. The supplied value was: %@", value);
|
||||
}
|
||||
|
||||
[source synchronize];
|
||||
|
||||
Reference in New Issue
Block a user