wp_handle_upload does not appear to handle file move errors correctly
|Reported by:||simonwheatley||Owned by:||andy|
wp_handle_upload uses a configurable error handler for all errors, except in the case where it fails to move the file to the uploads directory. I think this is an ommission, which the attached patch fixes. The patch also corrects an instance of printf to sprintf.
- Set your upload directory & subdirectories to readonly (chmod -R 444 /your/uploads/)
- Attempt to upload a file through the 2.5 SWF uploader
- Observe the generic error message "An error occurred in the upload. Please try again later."
Change History (6)
8 years ago
- Keywords has-patch needs-testing added; has_patch needs_testing removed