Dots in url hostname

This fixes the encoding of hostnames with `.` characters in them. Without this fix, the hostname would be encoded making it impossible to use regular DNS hostnames.
This commit is contained in:
Kenneth Skovhede
2025-07-15 10:58:36 +02:00
parent f703ceecc7
commit aa42734cf8
+1 -1
View File
@@ -353,7 +353,7 @@ namespace Duplicati.Library.Utility
/// <summary>
/// The regular expression that matches %20 type values in a querystring
/// </summary>
private static readonly System.Text.RegularExpressions.Regex RE_ESCAPECHAR = new System.Text.RegularExpressions.Regex(@"[^0-9a-zA-Z\-_]", System.Text.RegularExpressions.RegexOptions.Compiled);
private static readonly System.Text.RegularExpressions.Regex RE_ESCAPECHAR = new System.Text.RegularExpressions.Regex(@"[^0-9a-zA-Z\-_.]", System.Text.RegularExpressions.RegexOptions.Compiled);
/// <summary>
/// Encodes a URL, like System.Web.HttpUtility.UrlEncode