[wp-trac] [WordPress Trac] #29257: media_sideload_image() calls rename() on temp file, which can break streams

WordPress Trac noreply at wordpress.org
Wed Aug 20 23:37:22 UTC 2014


#29257: media_sideload_image() calls rename() on temp file, which can break streams
--------------------------+------------------------------
 Reporter:  joehoyle      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.9.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by mattheu):

 * keywords:   => has-patch


Comment:

 Added a patch that uses copy & unlink instead of rename. This solution
 seems less likely to cause issues.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29257#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list