Filename error of file download

Please report bugs here!

Moderator: Thorsten

Post Reply
seri
Posts: 22
Joined: Wed May 11, 2016 3:43 am

Filename error of file download

Post by seri »

Hi,

With IE11, when Download attachmented file,multibited filename is broken.
It does not occur with the chrome.
I found the code in \phpmyfaq\inc\PMF\Attachment\File.php
Line 195
header("Content-Disposition: $disposition; filename=\"{$this->filename}\"", true);
caused the phenomenon.
I rewrited to
header("Content-Disposition: $disposition; filename=\"".rawurlencode($this->filename), true);
and the trouble dissolved.
I'm not good at coding.So I'm worried about other Influences.

Can you fix it neatly so that other troubles are not given?
Thanks.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Filename error of file download

Post by Thorsten »

Hi,

good hint, will add this for 2.9.2!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply