'\\', '/', ':', '*', '?', '\'', '<', '>', '|', '^'
};
const gchar folder_name_forbidden_chars[] = {
- '<', '>', ':', '\'', '/', '\\', '|', '?', '*', '^', '%', '$'
+ '<', '>', ':', '\'', '/', '\\', '|', '?', '*', '^', '%', '$', '#', '&'
};
const gchar user_name_forbidden_chars[] = {
'<', '>'
gchar*
modest_text_utils_remove_address (const gchar *address_list, const gchar *address)
{
- gchar *dup, *token, *ptr, *result;
+ gchar *dup, *token, *ptr = NULL, *result;
GString *filtered_emails;
gchar *email_address;
if (len <= HYPERLINKIFY_MAX_LENGTH)
hyperlinkify_plain_text (html);
-
+
return g_string_free (html, FALSE);
}
{
gboolean valid = FALSE;
regex_t rx;
- const gchar* domain_regex = "^[a-z0-9]([.]?[a-z0-9-])*[a-z0-9]$";
+ const gchar* domain_regex = "^([a-z0-9-]*[a-z0-9]\\.)+[a-z0-9-]*[a-z0-9]$";
g_return_val_if_fail (domain, FALSE);