From 90a710715268590ad808057d888bebfd9f56c7d5 Mon Sep 17 00:00:00 2001 From: Morten Nilsen Date: Wed, 29 May 2013 10:38:56 +0200 Subject: [PATCH] Fix for issue #1285 --- SparkleShare/SparkleInvite.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SparkleShare/SparkleInvite.cs b/SparkleShare/SparkleInvite.cs index c3a891c7..767d0a8b 100644 --- a/SparkleShare/SparkleInvite.cs +++ b/SparkleShare/SparkleInvite.cs @@ -66,7 +66,7 @@ namespace SparkleShare { if (string.IsNullOrEmpty (AcceptUrl)) return true; - string post_data = "public_key=" + HttpUtility.UrlEncode (public_key); + string post_data = "public_key=" + Uri.EscapeDataString (public_key); byte [] post_bytes = Encoding.UTF8.GetBytes (post_data); WebRequest request = WebRequest.Create (AcceptUrl);