aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-03-15 22:51:44 +0000
committerBibiko <bibiko@eva.mpg.de>2011-03-15 22:51:44 +0000
commit2e74c19d188d2b9b17baed375a2250ee0abc53f5 (patch)
treece402f76a6ed2db7cb3c26bdb848c8d621ed0473 /Source/SPAppController.m
parentf75853dea57bc97cc264352268f9d4a311bffb9f (diff)
downloadsequelpro-2e74c19d188d2b9b17baed375a2250ee0abc53f5.tar.gz
sequelpro-2e74c19d188d2b9b17baed375a2250ee0abc53f5.tar.bz2
sequelpro-2e74c19d188d2b9b17baed375a2250ee0abc53f5.zip
• fixed issue for handleEventWithURL: to ignore trailing / while parameter passing
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m6
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)];