hostnameUri fix

This commit is contained in:
Kyle Spearrin 2017-10-20 16:18:30 -04:00
parent 05f4036309
commit a197c0219e

View file

@ -48,7 +48,7 @@ namespace Bit.App.Models.Page
isWebsite = hostnameUri.StartsWith("http") && hostnameUri.Contains("."); isWebsite = hostnameUri.StartsWith("http") && hostnameUri.Contains(".");
} }
if(imageEnabled && isWebsite && Uri.TryCreate(LoginUri, UriKind.Absolute, out Uri u)) if(imageEnabled && isWebsite && Uri.TryCreate(hostnameUri, UriKind.Absolute, out Uri u))
{ {
Icon = "https://icons.bitwarden.com/" + u.Host + "/icon.png"; Icon = "https://icons.bitwarden.com/" + u.Host + "/icon.png";
} }