Mercurial > hg > nginx-quic
changeset 4553:3dd8a403faa1
Fixed off-by-one in xslt parameter parsing.
The problem was introduced in 0.7.44 (r2589) during conversion to complex
values. Previously string.len included space for terminating NUL, but
with complex values it doesn't.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 22 Mar 2012 10:43:33 +0000 |
parents | b00098cbc44d |
children | 212a0251951b |
files | src/http/modules/ngx_http_xslt_filter_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_xslt_filter_module.c +++ b/src/http/modules/ngx_http_xslt_filter_module.c @@ -585,7 +585,7 @@ ngx_http_xslt_params(ngx_http_request_t "xslt filter param: \"%s\"", string.data); p = string.data; - last = string.data + string.len - 1; + last = string.data + string.len; while (p && *p) {