diff --git a/atom/common/platform_util_mac.mm b/atom/common/platform_util_mac.mm index 2f9e2b764236..dcf622feb5cd 100644 --- a/atom/common/platform_util_mac.mm +++ b/atom/common/platform_util_mac.mm @@ -121,7 +121,8 @@ void OpenItem(const base::FilePath& full_path) { bool OpenExternal(const GURL& url) { DCHECK([NSThread isMainThread]); NSString* url_string = base::SysUTF8ToNSString(url.spec()); - NSURL* ns_url = [NSURL URLWithString:url_string]; + NSString* url_escaped_string = [url_string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; + NSURL* ns_url = [NSURL URLWithString:url_escaped_string]; if (!ns_url) { return false; }