fixes bitwarden/mobile#967 (#1067)

This commit is contained in:
Captain Trips 2021-05-17 14:38:21 -05:00 committed by GitHub
parent 8fe8c42765
commit 570edb4319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ namespace Bit.Core.Utilities
return null; return null;
} }
var hasHttpProtocol = uriString.StartsWith("http://") || uriString.StartsWith("https://"); var hasHttpProtocol = uriString.StartsWith("http://") || uriString.StartsWith("https://");
if (!hasHttpProtocol && uriString.Contains(".")) if (!hasHttpProtocol && !uriString.Contains("://") && uriString.Contains("."))
{ {
if (Uri.TryCreate("http://" + uriString, UriKind.Absolute, out var uri)) if (Uri.TryCreate("http://" + uriString, UriKind.Absolute, out var uri))
{ {