Monotone-Parent: 2b4b283c7442a1f2231c8b06c202bee21abeb77e

Monotone-Revision: 07a4b889932aece040cb23e1968bceb6a917b930

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-09-29T16:43:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-09-29 16:43:37 +00:00
parent 6b85a35298
commit 7812cd0785
4 changed files with 13 additions and 26 deletions

View File

@@ -1,3 +1,14 @@
2009-09-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m
(_urlPreferringParticle:overThisOne:): instead of risking
confusion between SOPE, NSURL and friends, we revert this change
(see below) and choose other ways to avoid escaping of "@", "%",
etc...
* SoObjects/SOGo/NSString+Utilities.m (-stringByEscapingURLPart):
(revert) removed useless method.
2009-09-28 Cyril Robert <crobert@inverse.ca>
* SoObjects/Appointments/SOGoAptMailInvitation.m: Added Spanish definition.

View File

@@ -44,8 +44,6 @@
- (NSString *) doubleQuotedString;
- (NSString *) stringByEscapingURLPart;
- (NSString *) jsonRepresentation;
- (NSString *) asCSSIdentifier;

View File

@@ -304,19 +304,6 @@ static NSMutableCharacterSet *urlStartChars = nil;
return [self doubleQuotedString];
}
- (NSString *) stringByEscapingURLPart
{
NSString *rc;
rc = [self stringByUnescapingURL];
rc = [rc stringByReplacingString: @"@"
withString: @"%40"];
rc = [rc stringByReplacingString: @" "
withString: @"%20"];
return rc;
}
- (NSString *) asCSSIdentifier
{
NSMutableString *cssIdentifier;

View File

@@ -1143,12 +1143,11 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
{
NSURL *serverURL, *url;
NSMutableArray *path;
NSString *baseURL, *urlMethod, *fullHost, *part;
NSString *baseURL, *urlMethod, *fullHost;
NSNumber *port;
int count, max;
serverURL = [context serverURL];
baseURL = [self baseURLInContext: context];
baseURL = [[self baseURLInContext: context] stringByUnescapingURL];
path = [NSMutableArray arrayWithArray: [baseURL componentsSeparatedByString:
@"/"]];
if ([baseURL hasPrefix: @"http"])
@@ -1166,14 +1165,6 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
[path insertObject: expected atIndex: 2];
}
max = [path count];
for (count = 3; count < max; count++)
{
part = [path objectAtIndex: count];
[path replaceObjectAtIndex: count
withObject: [part stringByEscapingURLPart]];
}
port = [serverURL port];
if (port)
fullHost = [NSString stringWithFormat: @"%@:%@",