Skip to content

Commit

Permalink
encode user id in OwnCloudClient.getFilesDavUri(String)
Browse files Browse the repository at this point in the history
usernames containing spaces cause serious issues up to denying logins and syncs - making the whole app unusable while the same id works using the web gui.

Signed-off-by: mutec <[email protected]>
  • Loading branch information
mutec authored and backportbot[bot] committed Nov 16, 2021
1 parent da770c2 commit e021363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void setDefaultTimeouts(int defaultDataTimeout, int defaultConnectionTime
}

public String getFilesDavUri(String path) {
return getDavUri() + "/files/" + userId + "/" + WebdavUtils.encodePath(path);
return getDavUri() + "/files/" + getUserId() + "/" + WebdavUtils.encodePath(path);
}

public Uri getFilesDavUri() {
Expand Down

0 comments on commit e021363

Please sign in to comment.