Skip to content

Commit

Permalink
fix when path is not absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Oct 31, 2023
1 parent 1a61f72 commit f3c3e34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/http/services/owncloud/ocdav/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ func appendSlash(path string) string {

func (s *svc) isOpenable(path string) bool {
path = appendSlash(path)
path = filepath.Join("/", path)
for _, prefix := range s.c.DisabledOpenInAppPaths {
if strings.HasPrefix(path, appendSlash(prefix)) {
return false
Expand Down

0 comments on commit f3c3e34

Please sign in to comment.