From 3b7a6ad03856c4550b4fd420e91a7347fcf60b0f Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 24 Jan 2017 14:04:03 +0100 Subject: [PATCH] Fix updater for update locations with spaces in the path --- src/Jackett.Updater/Jackett.Updater.csproj | 1 + src/Jackett.Updater/Program.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Updater/Jackett.Updater.csproj b/src/Jackett.Updater/Jackett.Updater.csproj index 649764ba2..f56e4ff7b 100644 --- a/src/Jackett.Updater/Jackett.Updater.csproj +++ b/src/Jackett.Updater/Jackett.Updater.csproj @@ -62,6 +62,7 @@ True + diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index cdcc75e27..d23c563b3 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -9,6 +9,7 @@ using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; +using System.Web; /* // no supported by appveyor, disabeling for now #if __MonoCS__ @@ -223,7 +224,7 @@ namespace Jackett.Updater private string GetUpdateLocation() { var location = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase); - return new FileInfo(location.AbsolutePath).DirectoryName; + return new FileInfo(HttpUtility.UrlDecode(location.AbsolutePath)).DirectoryName; } } }