{
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 &&
(*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;