]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: fix html2text parser
authorPhil Carmody <phil@dovecot.fi>
Thu, 15 Oct 2015 11:44:03 +0000 (14:44 +0300)
committerPhil Carmody <phil@dovecot.fi>
Thu, 15 Oct 2015 11:44:03 +0000 (14:44 +0300)
Silly typo. Fixes bug reported on dovecot list by Akash on Oct 14.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib-mail/mail-html2text.c

index e9b52ef52b5be6da35633e6e03880eb7821f2986..a5fc2ee3a76a09ac06212f8a155eb1f6d7c1e7b8 100644 (file)
@@ -192,7 +192,7 @@ parse_data(struct mail_html2text *ht,
                        if (c == '"')
                                ht->state = HTML_STATE_TAG_DQUOTED;
                        else if (c == '\'')
-                               ht->state = HTML_STATE_TAG_DQUOTED;
+                               ht->state = HTML_STATE_TAG_SQUOTED;
                        else if (c == '>') {
                                ht->state = HTML_STATE_TEXT;
                                mail_html2text_add_space(output);