Monotone-Parent: fbaf51f1b9944aee510a816b001f424db9802648
Monotone-Revision: 9b5d407f9ae321995a0df2c39bcac77dc375d302 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-04T15:08:03 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
82aa341a5f
commit
b4fe7d040c
|
@ -1,5 +1,9 @@
|
|||
2009-06-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/SOGoUI/UIxComponent.m (-_parseQueryString:): fixed handling
|
||||
of bad charsets in the parameters encoding. Invalid values will be
|
||||
discarded.
|
||||
|
||||
* SoObjects/Contacts/SOGoContactGCSFolder.m
|
||||
(-lookupContactsWithFilter:sortBy:ordering:): same as below.
|
||||
|
||||
|
|
|
@ -154,24 +154,23 @@ static BOOL uixDebugEnabled = NO;
|
|||
NSString *key, *value;
|
||||
|
||||
e = [[_s componentsSeparatedByString:@"&"] objectEnumerator];
|
||||
part = [e nextObject];
|
||||
while (part)
|
||||
while ((part = [e nextObject]))
|
||||
{
|
||||
r = [part rangeOfString:@"="];
|
||||
if (r.length == 0)
|
||||
{
|
||||
/* missing value of query parameter */
|
||||
key = [part stringByUnescapingURL];
|
||||
key = [part stringByUnescapingURL];
|
||||
value = @"1";
|
||||
}
|
||||
else
|
||||
{
|
||||
key = [[part substringToIndex:r.location] stringByUnescapingURL];
|
||||
key = [[part substringToIndex:r.location] stringByUnescapingURL];
|
||||
value = [[part substringFromIndex:(r.location + r.length)]
|
||||
stringByUnescapingURL];
|
||||
}
|
||||
[queryParameters setObject:value forKey:key];
|
||||
part = [e nextObject];
|
||||
if (key && value)
|
||||
[queryParameters setObject:value forKey:key];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue