escape whitespaces in user name

This commit is contained in:
tobiasKaminsky 2017-10-13 15:02:50 +02:00 committed by AndyScherzinger
parent d3eb43e4b7
commit af7d2e7261
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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);