summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 17:06:06 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 17:06:06 -0800
commit6cfdc30696e4c462f898e9dfa4a202f957dca5d7 (patch)
treecbe2d70ddc92243059a91c83ac1f376c3acada12 /MobileCydia.mm
parente3e0246d0547a209e632c817bef81c813477acf9 (diff)
Fix SourceController state saving.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 758e662..c3ac471 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -8058,7 +8058,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
@implementation SourceController
- (NSURL *) navigationURL {
- return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://sources/%@", [source_ name]]];
+ return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://sources/%@", [key_ stringByAddingPercentEscapesIncludingReserved]]];
}
- (id) initWithDatabase:(Database *)database source:(Source *)source {
@@ -9485,7 +9485,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
controller = [[[SourcesController alloc] initWithDatabase:database_] autorelease];
[(SourcesController *)controller showAddSourcePrompt];
} else {
- Source *source = [database_ sourceWithKey:argument];
+ Source *source = [database_ sourceWithKey:[argument stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
controller = [[[SourceController alloc] initWithDatabase:database_ source:source] autorelease];
}
}