Skip to content

Commit 14c8713

Browse files
MkfsSionfjqingyou
authored andcommitted
dav_ext: Fix [] character not escaped in XML response
* Fixes arut#45 Signed-off-by: MkfsSion <[email protected]>
1 parent f5e3088 commit 14c8713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngx_http_dav_ext_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ ngx_http_dav_ext_propfind_response(ngx_http_request_t *r, ngx_array_t *entries,
10291029

10301030
for (n = 0; n < entries->nelts; n++) {
10311031
escape = 2 * ngx_escape_uri(NULL, entry[n].uri.data, entry[n].uri.len,
1032-
NGX_ESCAPE_URI);
1032+
NGX_ESCAPE_URI_COMPONENT);
10331033
if (escape == 0) {
10341034
continue;
10351035
}
@@ -1041,7 +1041,7 @@ ngx_http_dav_ext_propfind_response(ngx_http_request_t *r, ngx_array_t *entries,
10411041

10421042
entry[n].uri.len = (u_char *) ngx_escape_uri(p, entry[n].uri.data,
10431043
entry[n].uri.len,
1044-
NGX_ESCAPE_URI)
1044+
NGX_ESCAPE_URI_COMPONENT)
10451045
- p;
10461046
entry[n].uri.data = p;
10471047
}

0 commit comments

Comments
 (0)