From 19867175eed5aebee585c1ba6d8901176422703d Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 26 Nov 2009 16:17:55 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20while=20reading=20"ssh=5Fport?= =?UTF-8?q?"=20and=20"port"=20from=20SPF=20file=20-=20now=20the=20SPF's=20?= =?UTF-8?q?integer=20value=20will=20be=20converted=20to=20a=20string=20cor?= =?UTF-8?q?rectly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDocument.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 53d4474a..357952fb 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -447,7 +447,7 @@ if([connection objectForKey:@"host"]) [connectionController setHost:[connection objectForKey:@"host"]]; if([connection objectForKey:@"port"]) - [connectionController setPort:[NSString stringWithFormat:@"%d", [connection objectForKey:@"port"]]]; + [connectionController setPort:[NSString stringWithFormat:@"%d", [[connection objectForKey:@"port"] intValue]]]; if([connection objectForKey:@"kcid"] && [[connection objectForKey:@"kcid"] length]) [self setKeychainID:[connection objectForKey:@"kcid"]]; @@ -469,7 +469,7 @@ if([connection objectForKey:@"ssh_user"]) [connectionController setSshUser:[connection objectForKey:@"ssh_user"]]; if([connection objectForKey:@"ssh_port"]) - [connectionController setSshPort:[NSString stringWithFormat:@"%d", [connection objectForKey:@"ssh_port"]]]; + [connectionController setSshPort:[NSString stringWithFormat:@"%d", [[connection objectForKey:@"ssh_port"] intValue]]]; // Set ssh password - if not in SPF file try to get it via the KeyChain if([connection objectForKey:@"ssh_password"]) -- cgit v1.2.3