comparison src/http/modules/ngx_http_xslt_filter_module.c @ 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 d620f497c50f
children 212a0251951b
comparison
equal deleted inserted replaced
4552:b00098cbc44d 4553:3dd8a403faa1
583 583
584 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 584 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
585 "xslt filter param: \"%s\"", string.data); 585 "xslt filter param: \"%s\"", string.data);
586 586
587 p = string.data; 587 p = string.data;
588 last = string.data + string.len - 1; 588 last = string.data + string.len;
589 589
590 while (p && *p) { 590 while (p && *p) {
591 591
592 value = p; 592 value = p;
593 p = (u_char *) ngx_strchr(p, '='); 593 p = (u_char *) ngx_strchr(p, '=');