diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-03-15 22:51:44 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-03-15 22:51:44 +0000 |
commit | 2e74c19d188d2b9b17baed375a2250ee0abc53f5 (patch) | |
tree | ce402f76a6ed2db7cb3c26bdb848c8d621ed0473 | |
parent | f75853dea57bc97cc264352268f9d4a311bffb9f (diff) | |
download | sequelpro-2e74c19d188d2b9b17baed375a2250ee0abc53f5.tar.gz sequelpro-2e74c19d188d2b9b17baed375a2250ee0abc53f5.tar.bz2 sequelpro-2e74c19d188d2b9b17baed375a2250ee0abc53f5.zip |
• fixed issue for handleEventWithURL: to ignore trailing / while parameter passing
-rw-r--r-- | Source/SPAppController.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 30429d79..7ab59084 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -653,7 +653,11 @@ YY_BUFFER_STATE yy_scan_string (const char *); NSString *command = [url host]; NSString *passedProcessID = [url user]; NSArray *parameter; - NSArray *pathComponents = [[url absoluteString] pathComponents]; + NSArray *pathComponents; + if([[url absoluteString] hasSuffix:@"/"]) + pathComponents = [[[url absoluteString] substringToIndex:[[url absoluteString] length]-1] pathComponents]; + else + pathComponents = [[url absoluteString] pathComponents]; if([pathComponents count] > 2) parameter = [pathComponents subarrayWithRange:NSMakeRange(2, [pathComponents count]-2)]; |