1
0
mirror of https://github.com/opa334/TrollStore.git synced 2026-11-08 02:15:49 +08:00

Improve browser URL scheme validation

This commit is contained in:
AwesomeTy18 2026-11-05 01:00:10 -05:00
parent 8dc24807c3
commit 1e360fc42e
No known key found for this signature in database

View File

@ -846,7 +846,7 @@ void applyPatchesToInfoDictionary(NSString* appPath)
NSString* URLScheme = existingURLScheme.lowercaseString; NSString* URLScheme = existingURLScheme.lowercaseString;
BOOL isWebURLScheme = [URLScheme isEqualToString:@"http"] || [URLScheme isEqualToString:@"https"]; BOOL isWebURLScheme = [URLScheme isEqualToString:@"http"] || [URLScheme isEqualToString:@"https"];
if((isWebURLScheme && !isWebBrowser) || (!isWebURLScheme && [appleSchemes containsObject:URLScheme])) if([appleSchemes containsObject:URLScheme] && !(isWebBrowser && isWebURLScheme))
{ {
[URLSchemesSet removeObject:existingURLScheme]; [URLSchemesSet removeObject:existingURLScheme];
} }