diff --git a/Duplicati/Library/Backend/S3/S3Backend.cs b/Duplicati/Library/Backend/S3/S3Backend.cs index c82051674..030cd422b 100644 --- a/Duplicati/Library/Backend/S3/S3Backend.cs +++ b/Duplicati/Library/Backend/S3/S3Backend.cs @@ -249,6 +249,7 @@ namespace Duplicati.Library.Backend options["s3-ext-forcepathstyle"] = "true"; // Validate that hostname doesn't contain a path + hostname = hostname.Trim('/').Trim('\\'); if (hostname.Contains('/') || hostname.Contains('\\')) throw new UserInformationException(Strings.S3Backend.NoPathAllowedInEndpointError, "S3NoPathInEndpoint");