diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-08 14:54:53 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-11 23:51:48 -0400 |
commit | d22e88b7d9fdec286754f321b53b7cdd81d117c4 (patch) | |
tree | fc12d564131c6f2095c1cf74daf221d60ce6d1ee /src/mod_dirlisting.c | |
parent | 04f2fcf8f0020a131c21c48d92afeee1a91b76b6 (diff) | |
download | lighttpd-git-d22e88b7d9fdec286754f321b53b7cdd81d117c4.tar.gz |
[core] buffer_append_bs_escaped()
move accesslog_append_escaped() to buffer_append_bs_escaped()
replace buffer_append_string_encoded_json()
Diffstat (limited to 'src/mod_dirlisting.c')
-rw-r--r-- | src/mod_dirlisting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c index 1366a235..93cc2794 100644 --- a/src/mod_dirlisting.c +++ b/src/mod_dirlisting.c @@ -1098,7 +1098,7 @@ static int http_read_directory(handler_ctx * const p) { p->jcomma = 1; buffer_append_string_len(p->jb, CONST_STR_LEN( "{\"name\":\"")); } - buffer_append_string_encoded_json(p->jb, d_name, dsz); + buffer_append_bs_escaped(p->jb, d_name, dsz, BS_ESCAPE_JSON); const char *t; size_t tlen; |