Mercurial > dovecot > core-2.2
changeset 17394:54e508b71dcd
fts: parser-html - parse_tag_name returns wrong value for comments
This function returns 1 more than the number of additional
characters to be swallowed up by the state transition.
author | Phil Carmody <phil@dovecot.fi> |
---|---|
date | Tue, 27 May 2014 21:17:34 +0300 |
parents | 8f68543fa7f8 |
children | ad028a950248 |
files | src/plugins/fts/fts-parser-html.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/fts/fts-parser-html.c Tue May 27 21:17:34 2014 +0300 +++ b/src/plugins/fts/fts-parser-html.c Tue May 27 21:17:34 2014 +0300 @@ -68,7 +68,7 @@ if (size >= 3 && memcmp(data, "!--", 3) == 0) { parser->state = HTML_STATE_COMMENT; - return 3; + return 3 + 1; } if (size > 5 && i_memcasecmp(data, "style", 5) == 0) {