mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
escape whitespaces in user name
This commit is contained in:
parent
d3eb43e4b7
commit
af7d2e7261
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue