diff --git a/server/RdtClient.Service/Services/DownloadClient.cs b/server/RdtClient.Service/Services/DownloadClient.cs index e492071..17bb87f 100644 --- a/server/RdtClient.Service/Services/DownloadClient.cs +++ b/server/RdtClient.Service/Services/DownloadClient.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; +using System.Web; using Downloader; using RdtClient.Data.Models.Data; using RdtClient.Service.Helpers; @@ -61,6 +62,9 @@ namespace RdtClient.Service.Services } var fileName = uri.Segments.Last(); + + fileName = HttpUtility.UrlDecode(fileName); + var filePath = Path.Combine(torrentPath, fileName); if (File.Exists(filePath))