From e4eb7ddd1d987340e339b2a59d7ed0be46d79166 Mon Sep 17 00:00:00 2001 From: hiro Date: Sun, 25 Dec 2005 15:45:14 +0000 Subject: added more characters to be substituted for filename. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@861 ee746299-78ed-0310-b773-934348b2243d --- libsylph/utils.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libsylph/utils.c') diff --git a/libsylph/utils.c b/libsylph/utils.c index cfa223a7..e6703186 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -1077,7 +1077,7 @@ void subst_null(gchar *str, gint len, gchar subst) void subst_for_filename(gchar *str) { - subst_chars(str, " \t\r\n\"'/\\", '_'); + subst_chars(str, " \t\r\n\"'\\/:;*?<>|", '_'); } gchar *get_alt_filename(const gchar *filename, gint count) @@ -2973,9 +2973,7 @@ gchar *generate_mime_boundary(const gchar *prefix) buf_uniq[i] = '\0'; get_rfc822_date(buf_date, sizeof(buf_date)); - subst_char(buf_date, ' ', '_'); - subst_char(buf_date, ',', '_'); - subst_char(buf_date, ':', '_'); + subst_chars(buf_date, " ,:", '_'); return g_strdup_printf("%s=_%s_%s", prefix ? prefix : "Multipart", buf_date, buf_uniq); -- cgit v1.2.3