Permalink
Browse files

Fixed Dropbox path encoding bug

  • Loading branch information...
bbaia committed Jan 24, 2012
1 parent b4f1f5b commit 4c0d28688a8f98201a22ec908dec73a631ed3fe8
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Spring.Social.Dropbox/Social/Dropbox/Api/Impl/DropboxTemplate.cs
@@ -1314,7 +1314,8 @@ private string BuildUrl(string path, string dropboxPath)
private string BuildUrl(string path, string dropboxPath, NameValueCollection parameters)
{
- return this.BuildUrl(path.TrimEnd('/') + "/" + this.root + "/" + dropboxPath.TrimStart('/'), parameters);
+ string encodedDropboxPath = HttpUtils.UrlEncode(dropboxPath.TrimStart('/')).Replace("%2F", "/");
+ return this.BuildUrl(path.TrimEnd('/') + "/" + this.root + "/" + encodedDropboxPath, parameters);
}
private string BuildUrl(string path, NameValueCollection parameters)

0 comments on commit 4c0d286

Please sign in to comment.