adium-1.4 2775:3031d60eb00f: Strip http:// and https:// from Sta...
commits at adium.im
commits at adium.im
Sat Nov 21 18:22:19 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/3031d60eb00f
revision: 2775:3031d60eb00f
author: Zachary West <zacw at adium.im>
date: Sat Nov 21 13:22:15 2009 -0500
Strip http:// and https:// from StatusNet server addresses when the user enters them.
diffs (14 lines):
diff -r 6bcb9802d1cf -r 3031d60eb00f Plugins/Twitter Plugin/AILaconicaAccountViewController.m
--- a/Plugins/Twitter Plugin/AILaconicaAccountViewController.m Sat Nov 21 00:03:17 2009 -0500
+++ b/Plugins/Twitter Plugin/AILaconicaAccountViewController.m Sat Nov 21 13:22:15 2009 -0500
@@ -43,6 +43,10 @@
*/
- (void)saveConfiguration
{
+ // Strip out http:// or https:// in case the user entered them.
+ textField_connectHost.stringValue = [textField_connectHost.stringValue stringByReplacingOccurrencesOfString:@"http://" withString:@""];
+ textField_connectHost.stringValue = [textField_connectHost.stringValue stringByReplacingOccurrencesOfString:@"https://" withString:@""];
+
[super saveConfiguration];
[account setPreference:textField_APIpath.stringValue
More information about the commits
mailing list