diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 9e8c661e0..1680f0100 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1544,6 +1544,7 @@ static void removeKeRangerRansomware() if (returnCode == 1) { NSString* urlString = [self.fUrlSheetController urlString]; + urlString = [urlString stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet]; dispatch_async(dispatch_get_main_queue(), ^{ [self openURL:urlString]; });