Latest update - 7540
This commit is contained in:
@@ -1254,9 +1254,9 @@ ngx_http_ssi_parse(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx)
|
||||
case '-':
|
||||
state = ssi_error_end0_state;
|
||||
|
||||
ctx->param->key.data[ctx->param->key.len++] = ch;
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"invalid \"%V\" parameter in \"%V\" SSI command",
|
||||
"unexpected \"-\" symbol after \"%V\" "
|
||||
"parameter in \"%V\" SSI command",
|
||||
&ctx->param->key, &ctx->command);
|
||||
break;
|
||||
|
||||
|
||||
@@ -628,7 +628,7 @@ static ngx_int_t
|
||||
ngx_http_xslt_params(ngx_http_request_t *r, ngx_http_xslt_filter_ctx_t *ctx,
|
||||
ngx_array_t *params, ngx_uint_t final)
|
||||
{
|
||||
u_char *p, *last, *value, *dst, *src, **s;
|
||||
u_char *p, *value, *dst, *src, **s;
|
||||
size_t len;
|
||||
ngx_uint_t i;
|
||||
ngx_str_t string;
|
||||
@@ -698,8 +698,6 @@ ngx_http_xslt_params(ngx_http_request_t *r, ngx_http_xslt_filter_ctx_t *ctx,
|
||||
ngx_memcpy(p, string.data, string.len + 1);
|
||||
}
|
||||
|
||||
last = p + string.len;
|
||||
|
||||
while (p && *p) {
|
||||
|
||||
value = p;
|
||||
@@ -729,7 +727,7 @@ ngx_http_xslt_params(ngx_http_request_t *r, ngx_http_xslt_filter_ctx_t *ctx,
|
||||
*p++ = '\0';
|
||||
|
||||
} else {
|
||||
len = last - value;
|
||||
len = ngx_strlen(value);
|
||||
}
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
|
||||
@@ -933,7 +933,6 @@ internal_redirect(r, uri)
|
||||
ngx_http_request_t *r;
|
||||
ngx_http_perl_ctx_t *ctx;
|
||||
SV *uri;
|
||||
ngx_uint_t i;
|
||||
|
||||
ngx_http_perl_set_request(r, ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user