mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
Add series with an ' apostrophe will now work correctly.
This commit is contained in:
parent
19c7702647
commit
43e02fa24a
3 changed files with 230 additions and 229 deletions
|
@ -84,7 +84,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
ViewData["guid"] = Guid.NewGuid();
|
||||
ViewData["path"] = path;
|
||||
ViewData["javaPath"] = path.Replace(Path.DirectorySeparatorChar, '|').Replace(Path.VolumeSeparatorChar, '^');
|
||||
ViewData["javaPath"] = path.Replace(Path.DirectorySeparatorChar, '|').Replace(Path.VolumeSeparatorChar, '^').Replace('\'', '`');
|
||||
|
||||
var defaultQuality = _configProvider.DefaultQualityProfile;
|
||||
var qualityProfiles = _qualityProvider.GetAllProfiles();
|
||||
|
@ -105,7 +105,7 @@ namespace NzbDrone.Web.Controllers
|
|||
//Add the new series to the Database
|
||||
|
||||
_seriesProvider.AddSeries(
|
||||
path.Replace('|', Path.DirectorySeparatorChar).Replace('^', Path.VolumeSeparatorChar), seriesId,
|
||||
path.Replace('|', Path.DirectorySeparatorChar).Replace('^', Path.VolumeSeparatorChar).Replace('`', '\''), seriesId,
|
||||
qualityProfileId);
|
||||
ScanNewSeries();
|
||||
return new JsonResult { Data = "ok" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue