The filename in the Content-Disposition header in filemanager_transfer() should be quoted. As it stands the filenames aren't interpreted correctly by the browser.

I'll submit a patch once you commit all the recent changes.

Comments

drewish’s picture

StatusFileSize
new1.11 KB

Here's a patch that quotes the filename and also adds docs for the header parameter.

drewish’s picture

Status: Active » Needs review

For testing, a sample filename that fails without the patch is: "Democracy_Now!_(9am_on_Feb_16th,_2006).mp3"

drewish’s picture

Priority: Normal » Critical
StatusFileSize
new1.08 KB

The previous patch used filesize($filepath) which caused errors.

drewish’s picture

Status: Needs review » Fixed

Applied to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)