From 8476f53337acfa80f92b0ce34456f124b01f00f6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 11 Jun 2019 11:00:34 -0400 Subject: [PATCH] try create uri --- src/App/Services/MobilePlatformUtilsService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Services/MobilePlatformUtilsService.cs b/src/App/Services/MobilePlatformUtilsService.cs index 840f91b63..d21a8a651 100644 --- a/src/App/Services/MobilePlatformUtilsService.cs +++ b/src/App/Services/MobilePlatformUtilsService.cs @@ -91,7 +91,8 @@ namespace Bit.App.Services public void LaunchUri(string uri, Dictionary 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); }