Closed (won't fix)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2004 at 01:13 UTC
Updated:
21 Apr 2004 at 20:00 UTC
file_check_upload returns successfully when an empty file is uploaded. this causes an error in getimagesize() (for example in profile.module's avatar code). to reproduce: using profile module with avatars enabled, enter 'xx' in the file upload box and submit the form. the getimagesize error will be reported since it can't process the file.
the attached one-liner just checks to see that the uploaded file is in fact non empty.
| Comment | File | Size | Author |
|---|---|---|---|
| file_check_upload.patch | 778 bytes | walkah |
Comments
Comment #1
dries commented