Begin forwarded message:
From: candy@xz.cz Date: Mon 23 Jan 2006 01:01:37 GMT+01:00 To: infrastructure@drupal.org Subject: [infrastructure] [Drupal.org problem] drupal4.6.5 - file.inc Reply-To: candy@xz.cz, "A list for Drupal infrastructure maintainers \(eg. drupal.org, CVS, mailing lists\)" <infrastructure@drupal.org>
CandySan sent a message using the contact form at http://drupal.org/contact:
HI! [solved problem]
I had a problem with images (private downloads) and firefox on linux. The images would not be printed; FF/Linux says "broken image"; Opera/Linux ok; Windows not tested.
The problem was found in the includes/file.inc file in function file_transfer. There is a line "ob_end_clean();" before sending data - this is the problem; Comment out this line solves the problem.
One more improvement is in the same function in the while loop: after line "print fread($fd, 1024);" it is better to add line "ob_flush(); flush();" to reduce memory consummation and some memory limits.
thanks CandySan
P.S. sorry if it should be in some bug report, but it is solved...
-- [ infrastructure | http://lists.drupal.org/listinfo/infrastructure ]
-- Dries Buytaert :: http://www.buytaert.net/