[Commits] [SCM] claws branch, master, updated. 3.13.0-45-gf2952c9

claws at claws-mail.org claws at claws-mail.org
Tue Nov 10 16:20:28 CET 2015


The branch, master has been updated
       via  f2952c9fb89697290384a97cd27ab6c538430b54 (commit)
      from  b1168c7ffc081d05fe2b600d5dd22b40a3c926c6 (commit)

Summary of changes:
 AUTHORS           |    1 +
 src/gtk/authors.h |    3 ++-
 src/html.c        |    3 +++
 3 files changed, 6 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit f2952c9fb89697290384a97cd27ab6c538430b54
Author: Paul <paul at claws-mail.org>
Date:   Tue Nov 10 15:20:23 2015 +0000

    fix bug 3561, 'HTML <a> tag with no href makes message display incorrectly.'
    
    based on patch by Andy Balaam

diff --git a/AUTHORS b/AUTHORS
index b75f349..12ed96a 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -307,3 +307,4 @@ contributors (in addition to the above; based on Changelog)
 	Mikhail Kurinnoi
 	Arthur Huillet
 	Blatinox
+	Andy Balaam
diff --git a/src/gtk/authors.h b/src/gtk/authors.h
index 4651705..d4aa975 100644
--- a/src/gtk/authors.h
+++ b/src/gtk/authors.h
@@ -86,11 +86,12 @@ static char *CONTRIBS_LIST[] = {
 "André Filipe de Assunção e Brito",
 "Sergei Astanin",
 "Ruslan N. Balkin",
+"Andy Balaam",
 "Henri Bauer",
+"Didier Barvaux",
 "Fabio Júnior Beneditto",
 "M. Benkmann",
 "Wilbert Berendsen",
-"Didier Barvaux",
 "Sébastien Bigaret",
 "Laurent Bigonville",
 "Jean-Luc Biord",
diff --git a/src/html.c b/src/html.c
index 19cb52c..72df946 100644
--- a/src/html.c
+++ b/src/html.c
@@ -649,6 +649,7 @@ static SC_HTMLState sc_html_parse_tag(SC_HTMLParser *parser)
 		parser->state = SC_HTML_BR;
 	} else if (!strcmp(tag->name, "a")) {
 		GList *cur;
+		parser->href = NULL;
 		for (cur = tag->attr; cur != NULL; cur = cur->next) {
 			if (cur->data && !strcmp(((SC_HTMLAttr *)cur->data)->name, "href")) {
 				g_free(parser->href);
@@ -658,6 +659,8 @@ static SC_HTMLState sc_html_parse_tag(SC_HTMLParser *parser)
 				break;
 			}
 		}
+		if (parser->href == NULL)
+			parser->href = g_strdup("");
 		parser->state = SC_HTML_HREF_BEG;
 	} else if (!strcmp(tag->name, "/a")) {
 		parser->state = SC_HTML_HREF;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list