summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Juick/Classes/AccountManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/Classes/AccountManager.cs b/Juick/Classes/AccountManager.cs
index eb99d92..fee2818 100644
--- a/Juick/Classes/AccountManager.cs
+++ b/Juick/Classes/AccountManager.cs
@@ -90,12 +90,12 @@ namespace Juick.Classes
void RegisterNotificationUrl(string newUrl)
{
- App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/register?url=" + newUrl),
+ App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/register?url=" + Uri.EscapeDataString(newUrl)),
response => Debug.WriteLine("Registering push url, status {0}: {1}", response.Request.Resource, response.StatusCode));
}
void UnregisterNotificationUrl(string oldUrl)
{
- App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/unregister?url=" + oldUrl),
+ App.AppContext.Client.ExecuteAsync(new RestRequest("/winphone/unregister?url=" + Uri.EscapeDataString(oldUrl)),
response => Debug.WriteLine("Unregistered push url, status {0}: {1}", response.Request.Resource, response.StatusCode));
}
}