Skip to content

Commit

Permalink
Fixed #2164
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Rees authored and Jamie Rees committed Apr 21, 2018
1 parent a0dbd1c commit 8927c5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ombi.Api.Pushover/PushoverApi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Ombi.Api.Pushover.Models;
Expand All @@ -17,7 +18,7 @@ public PushoverApi(IApi api)

public async Task<PushoverResponse> PushAsync(string accessToken, string message, string userToken)
{
var request = new Request($"messages.json?token={accessToken}&user={userToken}&message={message}", PushoverEndpoint, HttpMethod.Post);
var request = new Request($"messages.json?token={accessToken}&user={userToken}&message={WebUtility.HtmlEncode(message)}", PushoverEndpoint, HttpMethod.Post);

var result = await _api.Request<PushoverResponse>(request);
return result;
Expand Down

0 comments on commit 8927c5f

Please sign in to comment.