Skip to content

Commit

Permalink
Update internal/http/services/owncloud/ocdav/propfind/propfind.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
kobergj and butonic authored Aug 24, 2023
1 parent 17ad491 commit d85a1ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/http/services/owncloud/ocdav/propfind/propfind.go
Original file line number Diff line number Diff line change
Expand Up @@ -1637,14 +1637,14 @@ func activeLocks(log *zerolog.Logger, lock *provider.Lock) string {
}

if un := utils.ReadPlainFromOpaque(lock.Opaque, "lockownername"); un != "" {
activelocks.WriteString("<d:ownername>")
activelocks.WriteString("<oc:ownername>")
activelocks.WriteString(un)
activelocks.WriteString("</d:ownername>")
activelocks.WriteString("</oc:ownername>")
}
if lt := utils.ReadPlainFromOpaque(lock.Opaque, "locktime"); lt != "" {
activelocks.WriteString("<d:locktime>")
activelocks.WriteString("<oc:locktime>")
activelocks.WriteString(lt)
activelocks.WriteString("</d:locktime>")
activelocks.WriteString("</oc:locktime>")
}
activelocks.WriteString("<d:timeout>")
activelocks.WriteString(expiration)
Expand Down

0 comments on commit d85a1ff

Please sign in to comment.