Skip to content

Commit 569a099

Browse files
committed
Use Uri.EscapeDataString
1 parent 5292f10 commit 569a099

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

YoutubeDownloader/Views/Dialogs/AuthSetupView.axaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Net;
43
using Avalonia.Interactivity;
54
using Avalonia.WebView.Windows.Core;
65
using Microsoft.Web.WebView2.Core;
@@ -14,7 +13,7 @@ public partial class AuthSetupView : UserControl<AuthSetupViewModel>
1413
{
1514
private const string HomePageUrl = "https://www.youtube.com";
1615
private static readonly string LoginPageUrl =
17-
$"https://accounts.google.com/ServiceLogin?continue={WebUtility.UrlEncode(HomePageUrl)}";
16+
$"https://accounts.google.com/ServiceLogin?continue={Uri.EscapeDataString(HomePageUrl)}";
1817

1918
private CoreWebView2? _coreWebView2;
2019

0 commit comments

Comments
 (0)