Ignore non-URL strings when opening URLs
This commit is contained in:
parent
750589101a
commit
4331d9f0c7
|
@ -1270,7 +1270,13 @@ static void removeKeRangerRansomware()
|
|||
urlString = [@"http://" stringByAppendingString: urlString];
|
||||
}
|
||||
|
||||
NSURLRequest * request = [NSURLRequest requestWithURL: [NSURL URLWithString: urlString]
|
||||
NSURL * url = [NSURL URLWithString: urlString];
|
||||
if (url == nil)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
NSURLRequest * request = [NSURLRequest requestWithURL: url
|
||||
cachePolicy: NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval: 60];
|
||||
|
||||
if (fPendingTorrentDownloads[[request URL]])
|
||||
|
|
Loading…
Reference in New Issue