mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Sub filter: fixed matching for a single character.
This commit is contained in:
parent
c7efcf6ba6
commit
9fb2b9287d
@ -546,6 +546,14 @@ ngx_http_sub_parse(ngx_http_request_t *r, ngx_http_sub_ctx_t *ctx)
|
||||
|
||||
for ( ;; ) {
|
||||
if (ch == match) {
|
||||
|
||||
if (ctx->match.len == 1) {
|
||||
ctx->pos = p + 1;
|
||||
ctx->copy_end = p;
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
copy_end = p;
|
||||
ctx->looked.data[0] = *p;
|
||||
looked = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user