Add support for random domain syntax in S3 uploader

This commit is contained in:
Charles Milette 2018-01-01 14:13:27 -05:00
parent e81176a839
commit 0d2f219f16
No known key found for this signature in database
GPG key ID: 9BC74CC51CB137CE
2 changed files with 3 additions and 2 deletions

View file

@ -238,7 +238,8 @@ public string GenerateURL(string uploadPath)
if (Settings.UseCustomCNAME && !string.IsNullOrEmpty(Settings.CustomDomain))
{
url = URLHelpers.CombineURL(Settings.CustomDomain, uploadPath);
string parsedDomain = new CustomUploaderItem().ParseURL(Settings.CustomDomain, false);
url = URLHelpers.CombineURL(parsedDomain, uploadPath);
}
else
{

View file

@ -233,7 +233,7 @@ private void ParseRegexList()
}
}
private string ParseURL(string url, bool output)
public string ParseURL(string url, bool output)
{
if (string.IsNullOrEmpty(url))
{