summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 19:58:09 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 22:05:58 -0700
commitb90c7892f07cbb762b0a26f17cc61e81e33204fc (patch)
tree28b4a83133c0f9154f3aa0473a36ce707a32db8b
parent08bb23f0d8f25bc77745db48989e20853b60390d (diff)
Use more percent escapes: sections/ and search/.
-rw-r--r--MobileCydia.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 451879b..24608e6 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -7205,7 +7205,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if (name == nil)
name = @"all";
- return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://sections/%@", name]];
+ return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://sections/%@", [name stringByAddingPercentEscapesIncludingReserved]]];
}
- (id) initWithDatabase:(Database *)database section:(NSString *)name {
@@ -7768,7 +7768,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if ([search_ text] == nil || [[search_ text] isEqualToString:@""])
return [NSURL URLWithString:@"cydia://search"];
else
- return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://search/%@", [search_ text]]];
+ return [NSURL URLWithString:[NSString stringWithFormat:@"cydia://search/%@", [[search_ text] stringByAddingPercentEscapesIncludingReserved]]];
}
- (void) useSearch {
@@ -9662,13 +9662,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
if (!external && [base isEqualToString:@"search"]) {
- controller = [[[SearchController alloc] initWithDatabase:database_ query:argument] autorelease];
+ controller = [[[SearchController alloc] initWithDatabase:database_ query:[argument stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] autorelease];
}
if (!external && [base isEqualToString:@"sections"]) {
if ([argument isEqualToString:@"all"])
argument = nil;
- controller = [[[SectionController alloc] initWithDatabase:database_ section:argument] autorelease];
+ controller = [[[SectionController alloc] initWithDatabase:database_ section:[argument stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] autorelease];
}
if (!external && [base isEqualToString:@"sources"]) {