Skip to content

Commit

Permalink
fix(nextcloud): Fix WebDav path calculations for instances hosted at …
Browse files Browse the repository at this point in the history
…subpaths

Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Oct 10, 2024
1 parent 9692c52 commit d954c18
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class WebDavFile {
return PathUri(
isAbsolute: false,
isDirectory: href.isDirectory,
pathSegments: href.pathSegments.sublist(webdavBase.pathSegments.length),
// The server might be hosted at a subpath, so we don't have a fixed number of path segments to remove
pathSegments: href.pathSegments.sublist(href.pathSegments.indexOf('remote.php') + 2),
);
}();

Expand Down

0 comments on commit d954c18

Please sign in to comment.