Using Linux Redhat server, apache 2.2, PHP 5.2.8, MySQL Database server with utf8_general_ci collation, the upload_file_download function can return multiple results from the query on line # 149.

To replicate the bug you need two files of the same name but with different capitalisation e.g. 'sites/default/files/images/spider.jpg' and 'sites/default/files/images/Spider.jpg'

The result is that the header information can be written using the wrong file information which can result in strange behaviour in the browser i.e. only displaying half an image.

I first noticed this in the image module which uses the same query: http://drupal.org/node/763570

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.