mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
fixed #2475: URL encode Amazon S3 upload path
This commit is contained in:
parent
c58b96e088
commit
c1be9e36db
1 changed files with 2 additions and 0 deletions
|
@ -233,6 +233,8 @@ public string GenerateURL(string uploadPath)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(Settings.Endpoint) && !string.IsNullOrEmpty(Settings.Bucket))
|
if (!string.IsNullOrEmpty(Settings.Endpoint) && !string.IsNullOrEmpty(Settings.Bucket))
|
||||||
{
|
{
|
||||||
|
uploadPath = URLHelpers.URLPathEncode(uploadPath);
|
||||||
|
|
||||||
string url;
|
string url;
|
||||||
|
|
||||||
if (Settings.UseCustomCNAME && !string.IsNullOrEmpty(Settings.CustomDomain))
|
if (Settings.UseCustomCNAME && !string.IsNullOrEmpty(Settings.CustomDomain))
|
||||||
|
|
Loading…
Reference in a new issue