]> git.kaiwu.me - nginx.git/commit
Sub filter: fixed matching after a partial match.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 25 Jul 2013 10:54:53 +0000 (14:54 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 25 Jul 2013 10:54:53 +0000 (14:54 +0400)
commit1936a67647c71291fad0fdc022ac891f4c29e03c
tree8b048a1d28408862508da4d485cfcf1036200320
parentce7a5a05375dbf452a2cbe136c922f7718c15d5c
Sub filter: fixed matching after a partial match.

After a failed partial match we now check if there is another partial
match in previously matched substring to fix cases like "aab" in "aaab".

The ctx->saved string is now always sent if it's present on return
from the ngx_http_sub_parse() function (and reset accordingly).  This
allows to release parts of previously matched data.
src/http/modules/ngx_http_sub_filter_module.c