adium-1.4 2597:07e07f9788a6: Undo the part of [3855f70905bd]: It...
commits at adium.im
commits at adium.im
Wed Aug 26 17:11:46 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/07e07f9788a6
revision: 2597:07e07f9788a6
author: Stephen Holt <sholt at adium.im>
date: Wed Aug 26 13:17:35 2009 -0400
Undo the part of [3855f70905bd]: It caused strings to be incorrectly escaped and causing our XML parsing to break. Rather, escape hash-symbols when parsing in XML data as not to confuse AIHTMLDecoder. Refs #8141. Fixes #12856.
diffs (27 lines):
diff -r 387091087c49 -r 07e07f9788a6 Frameworks/Adium Framework/Source/AIXMLElement.m
--- a/Frameworks/Adium Framework/Source/AIXMLElement.m Sat Aug 22 23:10:25 2009 -0400
+++ b/Frameworks/Adium Framework/Source/AIXMLElement.m Wed Aug 26 13:17:35 2009 -0400
@@ -230,7 +230,7 @@
} else if ([value respondsToSelector:@selector(absoluteString)]) {
value = [(NSURL *)value absoluteString];
}
- [string appendFormat:@" %@=\"%@\"", key, value];
+ [string appendFormat:@" %@=%@", key, [self quotedXMLAttributeValueStringForString:value]];
}
}
if ((![contents count]) && (selfCloses)) {
diff -r 387091087c49 -r 07e07f9788a6 Source/AIXMLChatlogConverter.m
--- a/Source/AIXMLChatlogConverter.m Sat Aug 22 23:10:25 2009 -0400
+++ b/Source/AIXMLChatlogConverter.m Wed Aug 26 13:17:35 2009 -0400
@@ -260,6 +260,11 @@
withString:@"&"
options:NSLiteralSearch
range:NSMakeRange(0, [mutableMessage length])];
+ // Escape anchor tags
+ [mutableMessage replaceOccurrencesOfString:@"#"
+ withString:@"#"
+ options:NSLiteralSearch
+ range:NSMakeRange(0, [mutableMessage length])];
message = [mutableMessage autorelease];
}
NSString *shownSender = (senderAlias ? senderAlias : sender);
More information about the commits
mailing list