Browse Source

fix: encode webdav href as uri (#28)

* Revert "fix: filename xml escaping"

This reverts commit ce154d9ebc.

* webdav filenames are fixed
pull/30/head
Joe Koop 3 years ago committed by GitHub
parent
commit
8d03ec151a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/server.rs

8
src/server.rs

@ -829,8 +829,8 @@ impl PathItem { @@ -829,8 +829,8 @@ impl PathItem {
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>"#,
escape_str_pcdata(prefix),
escape_str_pcdata(&self.name),
prefix,
encode_uri(&self.name),
escape_str_pcdata(&self.base_name),
mtime
),
@ -847,8 +847,8 @@ impl PathItem { @@ -847,8 +847,8 @@ impl PathItem {
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>"#,
escape_str_pcdata(prefix),
escape_str_pcdata(&self.name),
prefix,
encode_uri(&self.name),
escape_str_pcdata(&self.base_name),
self.size.unwrap_or_default(),
mtime

Loading…
Cancel
Save