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:
parent
8dc24807c3
commit
1e360fc42e
@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user