summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 9237251..94861ef 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -7052,6 +7052,8 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi
return false;
if (![package unfiltered])
return false;
+ if ([query length] > [[package name] length])
+ return false;
if ([[package name] compare:query options:MatchCompareOptions_ range:NSMakeRange(0, [query length])] != NSOrderedSame)
return false;
return true;