From 5967e42a744c9868c47b2ae755b886db10a0615a Mon Sep 17 00:00:00 2001 From: Maarten Balliauw Date: Sat, 19 Oct 2019 15:18:40 +1100 Subject: [PATCH] UserManagementService .CreateUser replaces '@' with '%40' #91 --- src/YouTrackSharp/Management/UserManagementService.cs | 8 ++++---- src/YouTrackSharp/YouTrackSharp.csproj | 2 +- tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/YouTrackSharp/Management/UserManagementService.cs b/src/YouTrackSharp/Management/UserManagementService.cs index 4e386da8..89366388 100644 --- a/src/YouTrackSharp/Management/UserManagementService.cs +++ b/src/YouTrackSharp/Management/UserManagementService.cs @@ -92,11 +92,11 @@ public async Task CreateUser(string username, string fullName, string email, str } if (!string.IsNullOrEmpty(email)) { - queryString.Add("email", Uri.EscapeDataString(email)); + queryString.Add("email", email); } if (!string.IsNullOrEmpty(jabber)) { - queryString.Add("jabber", Uri.EscapeDataString(jabber)); + queryString.Add("jabber", jabber); } if (!string.IsNullOrEmpty(password)) { @@ -119,11 +119,11 @@ public async Task UpdateUser(string username, string fullName = null, string ema } if (!string.IsNullOrEmpty(email)) { - queryString.Add("email", Uri.EscapeDataString(email)); + queryString.Add("email", email); } if (!string.IsNullOrEmpty(jabber)) { - queryString.Add("jabber", Uri.EscapeDataString(jabber)); + queryString.Add("jabber", jabber); } if (!string.IsNullOrEmpty(password)) { diff --git a/src/YouTrackSharp/YouTrackSharp.csproj b/src/YouTrackSharp/YouTrackSharp.csproj index 6af615ea..e64d8065 100644 --- a/src/YouTrackSharp/YouTrackSharp.csproj +++ b/src/YouTrackSharp/YouTrackSharp.csproj @@ -17,7 +17,7 @@ JetBrains https://github.com/JetBrains/YouTrackSharp.git Git - 2019.2.2 + 2019.2.3 7.3 diff --git a/tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj b/tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj index a10fdb10..710bfca0 100644 --- a/tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj +++ b/tests/YouTrackSharp.Tests/YouTrackSharp.Tests.csproj @@ -13,7 +13,7 @@ https://raw.githubusercontent.com/JetBrains/YouTrackSharp/master/logo.png https://github.com/JetBrains/YouTrackSharp.git Git - 2019.2.2 + 2019.2.3 False 7.3