[Sandbox Broker] Only pop suggester for local URLs
Only pop up the path suggester and check on local file URLs, not remote URLs, which shouldn't be checked, since they don't require sandbox permission grants or bookmarks. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
7a3d571492
commit
824675ae59
1 changed files with 1 additions and 0 deletions
|
@ -410,6 +410,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
|
|
||||||
- (BOOL)areAllPathsSafe:(NSArray *)urls {
|
- (BOOL)areAllPathsSafe:(NSArray *)urls {
|
||||||
for(NSURL *url in urls) {
|
for(NSURL *url in urls) {
|
||||||
|
if(![url isFileURL]) continue;
|
||||||
if(![self recursivePathTest:url]) {
|
if(![self recursivePathTest:url]) {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue