mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-23 06:25:24 -07:00
Escape outgoing API calls
This commit is contained in:
parent
6b716e7220
commit
5ae914a584
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ namespace Ombi.Api
|
|||
startingTag = builder.Query.Contains("?") ? "&" : "?";
|
||||
}
|
||||
|
||||
value = Uri.EscapeDataString(value);
|
||||
|
||||
builder.Query = hasQuery
|
||||
? $"{builder.Query}{startingTag}{parameter}={value}"
|
||||
: $"{startingTag}{parameter}={value}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue