mirror of https://github.com/Jackett/Jackett
Fix updater for update locations with spaces in the path
This commit is contained in:
parent
dd6b284ed8
commit
3b7a6ad038
|
@ -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;
|
||||||
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
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue