Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2019-09-16 19:48:15 +0300
committerGitHub <noreply@github.com>2019-09-16 19:48:15 +0300
commit47068136c2ad9fd9475fc4c4c34f1cf33b81d2c0 (patch)
tree61c0d5db182dca12eebbf421756e122ec5e5d4a7 /main/src
parentb7bf2893f20b01603c139a1b0573a4d50c00bf80 (diff)
parent283675efd24d2b0cbdc5a0ae84f3e9bfaaf37680 (diff)
Merge pull request #8732 from mono/fix-983425
Allow relative urls to start with "/"
Diffstat (limited to 'main/src')
-rw-r--r--main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionHandler.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionHandler.cs b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionHandler.cs
index 1616fe4020..1b20fc3937 100644
--- a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionHandler.cs
+++ b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionHandler.cs
@@ -64,10 +64,10 @@ namespace MonoDevelop.AspNetCore
public static async Task LaunchBrowserAsync (string appUrl, string launchUrl, ExecutionTarget target, Task processTask)
{
launchUrl = launchUrl ?? "";
- //Check if lanuchUrl is valid absolute url and use it if it is...
- if (!Uri.TryCreate (launchUrl, UriKind.Absolute, out var launchUri)) {
- //Otherwise check if appUrl is valid absolute and lanuchUrl is relative then concat them...
- if (!Uri.TryCreate (appUrl, UriKind.Absolute, out var appUri)) {
+ //Check if launchUrl is valid absolute url and use it if it is...
+ if (!Uri.TryCreate (launchUrl, UriKind.Absolute, out var launchUri) || launchUri.IsFile) {
+ //Otherwise check if appUrl is valid absolute and launchUrl is relative then concat them...
+ if (!Uri.TryCreate (appUrl, UriKind.Absolute, out var appUri) || appUri.IsFile) {
LoggingService.LogWarning ("Failed to launch browser because invalid launch and app urls.");
return;
}