Hmm... I don't have much experience on the part of reading and managing files...
What kind of exploits could there be? Or is that curl snippet safe enough?
The code I posted is a slight variation of the one you can find in the vBulletin process_image_upload() function, which is used for uploading URL avatars.. However, it has no is_uploaded_file check in there, unlike in attachments.
|