Wed, 06 Sep 2023 22:25:34 +0200
send_string_escaped should escape for urls, not html
src/server/webdav/multistatus.c | file | annotate | diff | comparison | revisions |
--- a/src/server/webdav/multistatus.c Mon Jul 10 18:52:28 2023 +0200 +++ b/src/server/webdav/multistatus.c Wed Sep 06 22:25:34 2023 +0200 @@ -102,6 +102,7 @@ char c = str.ptr[i]; end = str.ptr + i; switch(c) { + /* case '"': { escape = """; esclen = 6; @@ -127,6 +128,12 @@ esclen = 4; break; } + */ + case ' ': { + escape = "%20"; + esclen = 3; + break; + } default: continue; } ptrdiff_t len = end - begin;