Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
5.x-2.2-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2008 at 00:57 UTC
Updated:
23 Oct 2008 at 13:42 UTC
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 commentedsorry, that should be line 1884
Comment #2
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) commentedAutomatically closed -- issue fixed for two weeks with no activity.