When viewing a pdf file uploaded with WebFM the file is opened instead of downloaded, resulting in the "raw" text of a pdf-file. This bug only happends with non-logged-in users and Firefox. IE works fine and it also works good with Firefox when boost is turned off.
I'm using Drupal 6.14 and PHP 5.2.6.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | boost-609640.patch | 1.02 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedHow can I reproduce this bug locally so it can be fixed?
This module
http://drupal.org/project/webfm
Public/Private downloads? Only PDF, anything else?
Comment #2
mikeytown2 commentedAble to reproduce, now working on a fix
Comment #3
mikeytown2 commentedBoost was too aggressive in what it was trying to cache. WebFM sends out multiple headers, one of them being text/html, the other being application/pdf. It was picking up the text/html and caching the PDF as text/html. Now boost only looks at the last header sent, which would be application/pdf in this case.
Comment #4
mikeytown2 commentedcommitted
Comment #5
MariusMaass commentedThanks, working.