]> git.saurik.com Git - cydia.git/commitdiff
Support trailing slash on saved state URLs.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 11:57:01 +0000 (04:57 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 12:09:12 +0000 (05:09 -0700)
MobileCydia.mm

index ca07872ab7213b37c4982379cdbe4bf2cb6ba82e..9732aae7f9537d7d89f87c7ccb2c41133536179b 100644 (file)
@@ -9467,7 +9467,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     if ([[url absoluteString] length] <= [scheme length] + 3)
         return nil;
     NSString *path([[url absoluteString] substringFromIndex:[scheme length] + 3]);
-    NSArray *components([path pathComponents]);
+    NSArray *components([path componentsSeparatedByString:@"/"]);
 
     if ([scheme isEqualToString:@"apptapp"] && [components count] > 0 && [[components objectAtIndex:0] isEqualToString:@"package"])
         return [self pageForPackage:[components objectAtIndex:1]];