diff --git a/src/Icons/Services/IconFetchingService.cs b/src/Icons/Services/IconFetchingService.cs index 52c1b81123..93c2b34429 100644 --- a/src/Icons/Services/IconFetchingService.cs +++ b/src/Icons/Services/IconFetchingService.cs @@ -50,7 +50,12 @@ namespace Bit.Icons.Services public async Task GetIconAsync(string domain) { - var uri = new Uri($"https://{domain}"); + if(!Uri.TryCreate($"https://{domain}", UriKind.Absolute, out var parsedUri)) + { + return null; + } + + var uri = parsedUri; var response = await GetAndFollowAsync(uri, 2); if(response == null || !response.IsSuccessStatusCode) {