mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
[macos] refactoring
This commit is contained in:
@ -646,8 +646,9 @@
|
||||
BOOL canOpen = NO;
|
||||
|
||||
if (path) {
|
||||
NSURL * urlFile = [NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
||||
|
||||
NSURL * urlFile = [NSURL URLWithString:[path stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLPathAllowedCharacterSet]]];
|
||||
|
||||
if (urlFile && [urlFile host]) {
|
||||
canOpen = YES;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user