From aff49d6c230becda47adc74ac352ea7a1d6c6128 Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Mon, 1 Sep 2003 01:14:09 +0000 Subject: [PATCH] Convert nbsp to space and allow usual characters in attachment filename git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5602 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/download.php b/src/download.php index 323c5217..6b6173aa 100644 --- a/src/download.php +++ b/src/download.php @@ -166,7 +166,8 @@ function DumpHeaders($type0, $type1, $filename, $force) { $filename = $languages[$squirrelmail_language]['XTRA_CODE']('downloadfilename', $filename, $HTTP_USER_AGENT); } else { - $filename = ereg_replace('[^-a-zA-Z0-9\.]', '_', $filename); +// $filename = ereg_replace('[^-a-zA-Z0-9\.]', '_', $filename); + $filename = ereg_replace('[\\/:\*\?"<>\|;]', '_', str_replace(' ', ' ', $filename)); } // A Pox on Microsoft and it's Office! -- 2.25.1