[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-59-gd2a50ffb8
paul at claws-mail.org
paul at claws-mail.org
Thu Jul 28 17:14:38 UTC 2022
The branch, gtk2 has been updated
via d2a50ffb8e9d58da9944e9c803dab18b029d9998 (commit)
from 5948bf92bf46d2469dd19182f73a2ec48f3b56a5 (commit)
Summary of changes:
src/customheader.c | 3 ---
src/prefs_customheader.c | 7 ++++++-
2 files changed, 6 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit d2a50ffb8e9d58da9944e9c803dab18b029d9998
Author: Paul <paul at claws-mail.org>
Date: Thu Jul 28 18:13:35 2022 +0100
give an appropriate error msg when disallowing a colon in a custom header
diff --git a/src/customheader.c b/src/customheader.c
index 40e43e873..b961b7107 100644
--- a/src/customheader.c
+++ b/src/customheader.c
@@ -103,9 +103,6 @@ gboolean custom_header_is_allowed(const gchar *header)
{
cm_return_val_if_fail(header != NULL, FALSE);
- if (strchr(header, ':') != NULL)
- return FALSE;
-
if (g_ascii_strcasecmp(header, "Date") != 0 &&
g_ascii_strcasecmp(header, "From") != 0 &&
g_ascii_strcasecmp(header, "To") != 0 &&
diff --git a/src/prefs_customheader.c b/src/prefs_customheader.c
index 93fcd8d75..e20f45b00 100644
--- a/src/prefs_customheader.c
+++ b/src/prefs_customheader.c
@@ -509,7 +509,12 @@ static void prefs_custom_header_list_view_set_row(PrefsAccount *ac)
(*entry_text == '\n' || *entry_text == '\r' ||
*entry_text == '\t' || *entry_text == ' '))
entry_text++;
-
+
+ if (strchr(entry_text, ':') != NULL) {
+ alertpanel_error(_("A colon (:) is not allowed in a custom header."));
+ return;
+ }
+
if (!custom_header_is_allowed(entry_text)) {
alertpanel_error(_("This Header name is not allowed as a custom header."));
return;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list