From ae5d93d6dd4a0b1771466582af2c15d3451b95c4 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 23 Jan 2022 19:34:54 -0600 Subject: [PATCH] Revert "Remove extra replacing (already done by Uri.EscapeDataString)" This reverts commit 6880f3863593244249bb0763ccf0d55d4240ed73. --- .../Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index 3b141f36a..0ca06a2d4 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -1013,7 +1013,7 @@ namespace NzbDrone.Core.Indexers.Cardigann // build search URL // HttpUtility.UrlPathEncode seems to only encode spaces, we use UrlEncode and replace + with %20 as a workaround - var searchUrl = ResolvePath(ApplyGoTemplateText(searchPath.Path, variables, Uri.EscapeDataString)).AbsoluteUri; + var searchUrl = ResolvePath(ApplyGoTemplateText(searchPath.Path, variables, Uri.EscapeDataString).Replace("+", "%20")).AbsoluteUri; var queryCollection = new List>(); var method = HttpMethod.Get;