diff --git a/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 521c848d4d..818c4c11f1 100644 --- a/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -663,7 +663,7 @@ public class ThumbnailsCacheManager { userId = AccountUtils.getAccountUsername(username); } - String uri = mClient.getBaseUri() + "" + "/index.php/avatar/" + userId + "/" + px; + String uri = mClient.getBaseUri() + "" + "/index.php/avatar/" + Uri.encode(userId) + "/" + px; Log_OC.d("Avatar", "URI: " + uri); get = new GetMethod(uri); int status = mClient.executeMethod(get);