adium 2913:0c5b69d24ed3: Strip http:// and https:// from StatusN...

commits at adium.im commits at adium.im
Sat Nov 21 18:24:50 UTC 2009


details:	http://hg.adium.im/adium/rev/0c5b69d24ed3
revision:	2913:0c5b69d24ed3
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.
(transplanted from 3031d60eb00f049322d4ee0d2b821f2586cbae78)

diffs (14 lines):

diff -r 31c121fed3f9 -r 0c5b69d24ed3 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