1
0
mirror of https://github.com/opa334/TrollStore.git synced 2026-01-11 07:32:24 +08:00

fix: app path validation logic in uninstallAppByPath

This commit is contained in:
Jacob Prezant 2026-01-02 15:54:37 -05:00
parent 72e6d652fc
commit 3caf9addd2

View File

@ -1169,7 +1169,7 @@ int uninstallAppByPath(NSString* appPath, BOOL useCustomMethod)
NSString* standardizedAppPath = appPath.stringByStandardizingPath;
if(![standardizedAppPath hasPrefix:@"/var/containers/Bundle/Application/"] && standardizedAppPath.pathComponents.count == 5)
if(![standardizedAppPath hasPrefix:@"/var/containers/Bundle/Application/"] || standardizedAppPath.pathComponents.count < 5)
{
return 1;
}