[ZendTo] Re: IE problem: filenames containing spaces

Liam Gretton liam.gretton at leicester.ac.uk
Thu Jun 27 10:25:55 BST 2013


On 26/06/2013 18:21, Kevin Miller wrote:
> Yup, I see the same thing here.  But I would hazard that it's IE doing it, not Zendto, thus not a bug in Zendto.

Having looked at the code, I'd say it is a ZendTo problem.

For IE clients only, the filename in the 'Content-Disposition' header is 
run through PHP's urlencode() function, which mangles the spaces.

In my opinion the filename should be encoded with rawurlencode() 
instead. This certainly fixes the problem with spaces and copes with a 
random selection of exotic characters that I tested with.

The fix just requires changing urlencode() to rawurlencode() at line 538 
of lib/NSSDropoff.php (this is in version 4.11-11).

-- 
Liam Gretton                                    liam.gretton at le.ac.uk
Systems Specialist                            http://www.le.ac.uk/its
IT Services                                   Tel: +44 (0)116 2522254
University of Leicester, University Road
Leicestershire LE1 7RH, United Kingdom


More information about the ZendTo mailing list