1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00

try create uri

This commit is contained in:
Kyle Spearrin 2019-06-11 11:00:34 -04:00
parent 31a77a6e19
commit 8476f53337

View File

@ -91,7 +91,8 @@ namespace Bit.App.Services
public void LaunchUri(string uri, Dictionary<string, object> options = null)
{
if(uri.StartsWith("http://") || uri.StartsWith("https://"))
if((uri.StartsWith("http://") || uri.StartsWith("https://")) &&
Uri.TryCreate(uri, UriKind.Absolute, out var parsedUri))
{
Browser.OpenAsync(uri, BrowserLaunchMode.External);
}