Skip to content

Commit

Permalink
Merge pull request #757 from nextcloud/backport/756/stable-2.8
Browse files Browse the repository at this point in the history
[stable-2.8] encode user id in `OwnCloudClient.getFilesDavUri(String)`
  • Loading branch information
AlvaroBrey authored Nov 16, 2021
2 parents da770c2 + e021363 commit f4a8b46
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 f4a8b46

Please sign in to comment.