From aa42734cf8ff8dd4d00720c7fa47a7b1bb147b37 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 15 Jul 2025 10:58:36 +0200 Subject: [PATCH] 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. --- Duplicati/Library/Utility/Uri.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Utility/Uri.cs b/Duplicati/Library/Utility/Uri.cs index 39c666369..6c5569cee 100644 --- a/Duplicati/Library/Utility/Uri.cs +++ b/Duplicati/Library/Utility/Uri.cs @@ -353,7 +353,7 @@ namespace Duplicati.Library.Utility /// /// The regular expression that matches %20 type values in a querystring /// - 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); /// /// Encodes a URL, like System.Web.HttpUtility.UrlEncode