> The fix is: > --- src/download.php 18 Jun 2003 22:22:19 -0000 1.109 > +++ src/download.php 1 Sep 2003 01:14:09 -0000 1.110 > @@ -166,7 +166,8 @@ > $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! > (
For those of you not sure how to apply this: 1) navigate to the main SM directory 2) put this (minus the greater than signs.. use Alex's original!) into a file in that directory, maybe call it "nbsp_patch.diff" 3) run this command: patch -p0 < nbsp_patch.diff > As you can see, it's only a matter of replacing one line with another. > If/when we have positive feedback from users who have spaces, single > quotes and/or 8bit chars in attachment names, and there is no side-effect > or security issue raised by this, then it should be backported to stable > since it probably bugs many people. Works good for me! Thanks, Alex! - paul ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users