aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 2fd4f83175..0d1f205559 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -123,13 +123,11 @@ make_safe_filename (const char *prefix, CamelMimePart *part)
safe = g_strdup_printf ("%s%s", prefix, p);
else
safe = g_strdup_printf ("%s/%s", prefix, name);
-
- for (p = strrchr (safe, '/') + 1; *p; p++) {
- if (!isascii ((unsigned char)*p) ||
- strchr (" /'\"`&();|<>${}!", *p))
- *p = '_';
- }
-
+
+ p = strrchr (safe, '/') + 1;
+ if (p)
+ e_str_make_safe (p);
+
return safe;
}