1
0
mirror of https://github.com/bitwarden/mobile synced 2025-01-24 07:25:05 +01:00

[SG-467] Fix environment url validations ()

* [SG-467] Fixed url validation so it works with or without http or https

* [SG-467] Validation has been refactored for simplicity.
This commit is contained in:
Carlos Gonçalves 2022-07-20 16:27:49 +01:00 committed by GitHub
parent c2fcc0ac52
commit f809170c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ namespace Bit.App.Pages
{ {
bool IsUrlValid(string url) bool IsUrlValid(string url)
{ {
return string.IsNullOrEmpty(url) || Uri.IsWellFormedUriString(url, UriKind.Absolute); return string.IsNullOrEmpty(url) || Uri.IsWellFormedUriString(url, UriKind.RelativeOrAbsolute);
} }
return IsUrlValid(BaseUrl) return IsUrlValid(BaseUrl)