Fix decoding of spaces in URL-encoded parameters
parent
006859cee1
commit
9310a289f6
1
NEWS
1
NEWS
|
@ -50,6 +50,7 @@ Bug fixes
|
||||||
- [web] cards list not accessible when changing address book in expanded card view
|
- [web] cards list not accessible when changing address book in expanded card view
|
||||||
- [web] added missing subject to junk/not junk reports
|
- [web] added missing subject to junk/not junk reports
|
||||||
- [web] fixed file uploader URL in mail editor
|
- [web] fixed file uploader URL in mail editor
|
||||||
|
- [web] fixed decoding of spaces in URL-encoded parameters (+)
|
||||||
- [eas] hebrew folders encoding problem using EAS (#4240)
|
- [eas] hebrew folders encoding problem using EAS (#4240)
|
||||||
- [eas] avoid sync requests for shared folders every second (#4275)
|
- [eas] avoid sync requests for shared folders every second (#4275)
|
||||||
|
|
||||||
|
|
|
@ -173,6 +173,7 @@ static SoProduct *commonProduct = nil;
|
||||||
- (void) _parseQueryString: (NSString *) _s
|
- (void) _parseQueryString: (NSString *) _s
|
||||||
{
|
{
|
||||||
NSEnumerator *e;
|
NSEnumerator *e;
|
||||||
|
NSMutableString *urlEncodedValue;
|
||||||
NSString *part;
|
NSString *part;
|
||||||
NSRange r;
|
NSRange r;
|
||||||
NSString *key, *value;
|
NSString *key, *value;
|
||||||
|
@ -190,8 +191,9 @@ static SoProduct *commonProduct = nil;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
key = [[part substringToIndex:r.location] stringByUnescapingURL];
|
key = [[part substringToIndex:r.location] stringByUnescapingURL];
|
||||||
value = [[part substringFromIndex:(r.location + r.length)]
|
urlEncodedValue = [NSMutableString stringWithString: [part substringFromIndex:(r.location + r.length)]];
|
||||||
stringByUnescapingURL];
|
[urlEncodedValue replaceString: @"+" withString: @" "];
|
||||||
|
value = [urlEncodedValue stringByUnescapingURL];
|
||||||
}
|
}
|
||||||
if (key && value)
|
if (key && value)
|
||||||
[queryParameters setObject:value forKey:key];
|
[queryParameters setObject:value forKey:key];
|
||||||
|
|
Loading…
Reference in New Issue