[Commits] [SCM] claws branch, master, updated. 3.14.1-127-ga875f48
wwp at claws-mail.org
wwp at claws-mail.org
Fri Jan 13 08:47:04 CET 2017
The branch, master has been updated
via a875f48b7d47a10c29acc8775cd127f61b42b265 (commit)
from b9dd4fb837fbdd02aec5b0e1c9b5bf9074a9933c (commit)
Summary of changes:
src/html.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit a875f48b7d47a10c29acc8775cd127f61b42b265
Author: wwp <wwp at free.fr>
Date: Fri Jan 13 08:46:13 2017 +0100
Don't dump more than 100 char in g_warnings about missing HTML tags errors
while parsing, unless --debug mode is set.
diff --git a/src/html.c b/src/html.c
index 815f446..fd623b1 100644
--- a/src/html.c
+++ b/src/html.c
@@ -579,7 +579,15 @@ static SC_HTMLTag *sc_html_get_tag(const gchar *str)
tmpp++;
attr_value = tmpp;
if ((p = strchr(attr_value, quote)) == NULL) {
- g_warning("sc_html_get_tag(): syntax error in tag: '%s'", str);
+ if (debug_get_mode()) {
+ g_warning("sc_html_get_tag(): syntax error in tag: '%s'",
+ str);
+ } else {
+ gchar *cut = g_strndup(str, 100);
+ g_warning("sc_html_get_tag(): syntax error in tag: '%s%s'",
+ cut, strlen(str)>100?"...":".");
+ g_free(cut);
+ }
return tag;
}
tmpp = p;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list