[tomboy] Fix for #651286, removes trailing slash from server URL.



commit 85c61449925f1adcf12f684b5b7ccf1ed307d2f6
Author: Robert Nordan <rpvn robpvn net>
Date:   Sat Jun 25 17:10:57 2011 +0200

    Fix for #651286, removes trailing slash from server URL.

 Tomboy/Addins/WebSyncService/WebSyncServer.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/Addins/WebSyncService/WebSyncServer.cs b/Tomboy/Addins/WebSyncService/WebSyncServer.cs
index 285c16a..6005fe9 100644
--- a/Tomboy/Addins/WebSyncService/WebSyncServer.cs
+++ b/Tomboy/Addins/WebSyncService/WebSyncServer.cs
@@ -44,7 +44,7 @@ namespace Tomboy.WebSync
 		public WebSyncServer (string serverUrl, IWebConnection connection)
 		{
 			this.connection = connection;
-			rootUri = serverUrl + "/api/1.0/"; // TODO: Trim trailing / from serverUrl if necessary
+			rootUri = serverUrl.TrimEnd ('/') + "/api/1.0/";
 		}
 
 		#region SyncServer implementation



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]