Skip to content

Commit

Permalink
修复链接处理
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed Apr 26, 2024
1 parent 2673e36 commit 0710a30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/BiliLite.UWP/Services/MessageCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ private static void ClearCookie()
/// <param name="par"></param>
public static async Task<bool> HandelUrl(string url, bool dontGoTo = false)
{
var uri = new Uri(url);
var uriHref = uri.GetLeftPart(UriPartial.Path);
var uriHref = "";
if (url.IsUrl())
{
var uri = new Uri(url);
uriHref = uri.GetLeftPart(UriPartial.Path);
}

_logger.Debug($"处理链接:{url}");
if (url.First() == '@')
Expand Down

0 comments on commit 0710a30

Please sign in to comment.