Private GIT

Skip to content
Snippets Groups Projects
Commit b3982b6d authored by kaso17's avatar kaso17 Committed by vlbox
Browse files

Fix updater for update locations with spaces in the path

parent 8b28f427
Branches
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="System.Net.Http.WebRequest" /> <Reference Include="System.Net.Http.WebRequest" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
......
...@@ -9,6 +9,7 @@ using System.Reflection; ...@@ -9,6 +9,7 @@ using System.Reflection;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web;
/* /*
// no supported by appveyor, disabeling for now // no supported by appveyor, disabeling for now
#if __MonoCS__ #if __MonoCS__
...@@ -223,7 +224,7 @@ namespace Jackett.Updater ...@@ -223,7 +224,7 @@ namespace Jackett.Updater
private string GetUpdateLocation() private string GetUpdateLocation()
{ {
var location = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase); var location = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase);
return new FileInfo(location.AbsolutePath).DirectoryName; return new FileInfo(HttpUtility.UrlDecode(location.AbsolutePath)).DirectoryName;
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment