Skip to content

Commit

Permalink
Fix bug when manually deleting the link with backscape
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed Jun 28, 2022
1 parent 9eaa55f commit 22390b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static string? MainExecutable

const string UpdateList = "Update.ini";

public static Version CurrentVersion = new Version("6.1.7");
public static Version CurrentVersion = new Version("6.1.8");

public static Version? LastVersion = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ private void UrlChanged(string Url)

if (Url.StartsWith("http", StringComparison.InvariantCultureIgnoreCase) && !Uri.IsWellFormedUriString(Url, UriKind.Absolute)) {
int PathOrQueryPos = Url.IndexOfAny(new char[] { '/', '?' }, Url.IndexOf("://", StringComparison.Ordinal) + 3);

if (PathOrQueryPos < 0)
return;

var Host = Url.Substring(0, PathOrQueryPos);

var PathAndQuery = Url.Substring(PathOrQueryPos);
Expand Down

0 comments on commit 22390b1

Please sign in to comment.