Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
A pdf uploaded using the upload module with private serving is displayed to the user as text, since text/plain has been added to its content type by fckeditor.module's hook_file_download function.
Changing line 1882 from
if ($file = db_fetch_object($result)) {
to
if ($file2 = db_fetch_object($result)) {
fixes it for me, looks like you accidentally overwrote the $file parameter sent to the function.
Comments
Comment #1
kbogert CreditAttribution: kbogert commentedsorry, that should be line 1884
Comment #2
wwalc CreditAttribution: wwalc commentedActually I don't see any reason to assign variable there
should do the trick as well and I fixed it in CVS this way.
However, could you confirm that it works correctly without assigning $file2 as suggested?
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.