Mercurial > hg > nginx
comparison src/http/modules/ngx_http_sub_filter_module.c @ 1555:76fe59c6fafb
fix empty string replacement in sub_filter
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 01 Oct 2007 16:24:15 +0000 |
parents | 383ae25c3171 |
children | 9d094e581587 |
comparison
equal
deleted
inserted
replaced
1554:30fcc8478d85 | 1555:76fe59c6fafb |
---|---|
367 { | 367 { |
368 return NGX_ERROR; | 368 return NGX_ERROR; |
369 } | 369 } |
370 } | 370 } |
371 | 371 |
372 b->memory = 1; | 372 if (ctx->sub.len) { |
373 b->pos = ctx->sub.data; | 373 b->memory = 1; |
374 b->last = ctx->sub.data + ctx->sub.len; | 374 b->pos = ctx->sub.data; |
375 b->last = ctx->sub.data + ctx->sub.len; | |
376 | |
377 } else { | |
378 b->sync = 1; | |
379 } | |
375 | 380 |
376 cl->buf = b; | 381 cl->buf = b; |
377 cl->next = NULL; | 382 cl->next = NULL; |
378 *ctx->last_out = cl; | 383 *ctx->last_out = cl; |
379 ctx->last_out = &cl->next; | 384 ctx->last_out = &cl->next; |