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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user