[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-17-g68cb64394
jonathan at claws-mail.org
jonathan at claws-mail.org
Mon Jul 26 23:41:52 CEST 2021
The branch, gtk3 has been updated
via 68cb64394f4160b110dc0eb25888833362420754 (commit)
via b98ea6e3f83e022771fae10b440d77f39c5206bd (commit)
from cf889e86b97b1b82da96725945833f5be5312569 (commit)
Summary of changes:
src/common/utils.c | 8 ++++++++
src/plugins/litehtml_viewer/Makefile.am | 5 +++++
src/plugins/litehtml_viewer/litehtml/Makefile.am | 1 +
3 files changed, 14 insertions(+)
- Log -----------------------------------------------------------------
commit 68cb64394f4160b110dc0eb25888833362420754
Author: Jonathan Boeing <jonathan.n.boeing at gmail.com>
Date: Sun Jul 25 23:24:10 2021 -0700
Add preprocessor definition for WIN32
diff --git a/src/plugins/litehtml_viewer/Makefile.am b/src/plugins/litehtml_viewer/Makefile.am
index f91ea5926..643b907ea 100644
--- a/src/plugins/litehtml_viewer/Makefile.am
+++ b/src/plugins/litehtml_viewer/Makefile.am
@@ -40,10 +40,14 @@ endif
if PLATFORM_WIN32
no_undefined = -no-undefined
+def_win32 = -DWIN32
else
no_undefined =
+def_win32 =
endif
+export def_win32
+
if CYGWIN
cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
else
@@ -91,6 +95,7 @@ litehtml_viewer_la_LDFLAGS = \
$(LIBGUMBO_LIBS)
litehtml_viewer_la_CPPFLAGS = \
+ $(def_win32) \
$(IFLAGS) \
$(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
diff --git a/src/plugins/litehtml_viewer/litehtml/Makefile.am b/src/plugins/litehtml_viewer/litehtml/Makefile.am
index 025e3152b..1ae5c258f 100644
--- a/src/plugins/litehtml_viewer/litehtml/Makefile.am
+++ b/src/plugins/litehtml_viewer/litehtml/Makefile.am
@@ -58,6 +58,7 @@ liblitehtml_la_LDFLAGS = \
$(LIBGUMBO_LIBS)
liblitehtml_la_CPPFLAGS = \
+ $(def_win32) \
$(LIBGUMBO_CFLAGS)
EXTRA_DIST = \
commit b98ea6e3f83e022771fae10b440d77f39c5206bd
Author: Jonathan Boeing <jonathan.n.boeing at gmail.com>
Date: Mon Mar 29 19:42:53 2021 -0700
check if string is valid UTF-8 before collating
diff --git a/src/common/utils.c b/src/common/utils.c
index b8cf669ee..cd01eb530 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -452,6 +452,14 @@ gint subject_compare_for_sort(const gchar *s1, const gchar *s2)
trim_subject_for_sort(str1);
trim_subject_for_sort(str2);
+ if (!g_utf8_validate(str1, -1, NULL)) {
+ g_warning("message subject \"%s\" failed UTF-8 validation", str1);
+ return 0;
+ } else if (!g_utf8_validate(str2, -1, NULL)) {
+ g_warning("message subject \"%s\" failed UTF-8 validation", str2);
+ return 0;
+ }
+
return g_utf8_collate(str1, str2);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list