From: Jay Freeman (saurik) Date: Mon, 4 Oct 2010 11:55:37 +0000 (-0700) Subject: Add todo XXX from Optimo for icon escape. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/69a8c80e184decb1b428154b7f23a53f2dead149 Add todo XXX from Optimo for icon escape. --- diff --git a/Cydia.mm b/Cydia.mm index f5610784..3dfb9505 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -2482,11 +2482,13 @@ struct PackageNameOrdering : UIImage *icon(nil); if (!icon_.empty()) if ([icon_ hasPrefix:@"file:///"]) + // XXX: correct escaping icon = [UIImage imageAtPath:[icon_ substringFromIndex:7]]; if (icon == nil) if (section != nil) icon = [UIImage imageAtPath:[NSString stringWithFormat:@"%@/Sections/%@.png", App_, section]]; if (icon == nil) if (source_ != nil) if (NSString *dicon = [source_ defaultIcon]) if ([dicon hasPrefix:@"file:///"]) + // XXX: correct escaping icon = [UIImage imageAtPath:[dicon substringFromIndex:7]]; if (icon == nil) icon = [UIImage applicationImageNamed:@"unknown.png"];