[imp] Mozilla needs no_filename_spaces quirk ?

Adam Arrowood adam.arrowood at oit.gatech.edu
Thu Mar 25 12:20:23 PST 2004


Using Horde/IMP (2.2.4/3.2.2), clicking on an attachment whose
filename has spaces results in truncated filenames in Mozilla and
Firefox on Mac (at least, probably all other platforms as
well). See http://bugzilla.mozilla.org/show_bug.cgi?id=221028
or http://bugzilla.mozilla.org/show_bug.cgi?id=233188

Given that, shouldn't Mozilla get the 'no_filename_spaces'
quirk in /horde/lib/Browser:

line 210
             } elseif (preg_match('|Mozilla/([0-9.]+)|', $this->agent, 
$version)) {
                 $this->setBrowser('mozilla');
                 $this->setQuirk('must_cache_forms');
                 $this->setQuirk('no_filename_spaces');  ## added

Adding that seems to work for me.

Though... the bugzilla posts hint on quoting the filename (er,
surrounding it with quotes) to allow Mozilla to maintain the
original spacing. I don't know what other browsers would
do with quoted filenames... Any thoughts on changing the policy
to quoting instead of replacing with spaces ?

thanks
-adam arrowood
--
Adam Arrowood :: http://www.gatech.edu/adam :: adam at oit.gatech.edu
Office of Information Technology/O&E/CS     :: (404) 894-0372
Georgia Institute of Technology, Atlanta, GA USA



More information about the imp mailing list