mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-04 13:15:06 +00:00
Monotone-Parent: fbaf51f1b9944aee510a816b001f424db9802648
Monotone-Revision: 9b5d407f9ae321995a0df2c39bcac77dc375d302 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-04T15:08:03 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2009-06-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
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
|
* SoObjects/Contacts/SOGoContactGCSFolder.m
|
||||||
(-lookupContactsWithFilter:sortBy:ordering:): same as below.
|
(-lookupContactsWithFilter:sortBy:ordering:): same as below.
|
||||||
|
|
||||||
|
|||||||
@@ -154,24 +154,23 @@ static BOOL uixDebugEnabled = NO;
|
|||||||
NSString *key, *value;
|
NSString *key, *value;
|
||||||
|
|
||||||
e = [[_s componentsSeparatedByString:@"&"] objectEnumerator];
|
e = [[_s componentsSeparatedByString:@"&"] objectEnumerator];
|
||||||
part = [e nextObject];
|
while ((part = [e nextObject]))
|
||||||
while (part)
|
|
||||||
{
|
{
|
||||||
r = [part rangeOfString:@"="];
|
r = [part rangeOfString:@"="];
|
||||||
if (r.length == 0)
|
if (r.length == 0)
|
||||||
{
|
{
|
||||||
/* missing value of query parameter */
|
/* missing value of query parameter */
|
||||||
key = [part stringByUnescapingURL];
|
key = [part stringByUnescapingURL];
|
||||||
value = @"1";
|
value = @"1";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
key = [[part substringToIndex:r.location] stringByUnescapingURL];
|
key = [[part substringToIndex:r.location] stringByUnescapingURL];
|
||||||
value = [[part substringFromIndex:(r.location + r.length)]
|
value = [[part substringFromIndex:(r.location + r.length)]
|
||||||
stringByUnescapingURL];
|
stringByUnescapingURL];
|
||||||
}
|
}
|
||||||
[queryParameters setObject:value forKey:key];
|
if (key && value)
|
||||||
part = [e nextObject];
|
[queryParameters setObject:value forKey:key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user