Skip to content
Permalink
Browse files

[F] URL Decode a search parameter berfore passing it on

  • Loading branch information...
Baine committed Nov 18, 2019
1 parent bbf690d commit f4c74ec1f843e999a6bb80e8f4311f80be4e6927
Showing with 1 addition and 1 deletion.
  1. +1 −1 Shoko.Server/API/v2/Modules/Common.cs
@@ -1818,7 +1818,7 @@ public ActionResult<IEnumerable<Serie>> SearchForSerie([FromQuery] API_Call_Para
}
if (!string.IsNullOrEmpty(para.query))
{
return Search(para.query, para.limit, para.limit_tag, (int) para.offset, para.tags, user.JMMUserID,
return Search(HttpUtility.UrlDecode(para.query), para.limit, para.limit_tag, (int) para.offset, para.tags, user.JMMUserID,
para.nocast != 0, para.notag != 0, para.level, para.all != 0, para.fuzzy != 0, para.allpics != 0, para.pic, para.tagfilter);
}
return BadRequest("missing 'query'");

0 comments on commit f4c74ec

Please sign in to comment.
You can’t perform that action at this time.