[wp-trac] [WordPress Trac] #24761: PHP Warning: filesize(): stat failed for /tmp/php4eOOiM in wp-admin/includes/ms.php on line 30, referer: http://foo.somesite.com/wp-admin/post.php?post=81&action=edit

WordPress Trac noreply at wordpress.org
Mon Jul 15 20:13:29 UTC 2013


#24761: PHP Warning:  filesize(): stat failed for /tmp/php4eOOiM in wp-
admin/includes/ms.php on line 30, referer: http://foo.somesite.com/wp-
admin/post.php?post=81&action=edit
-------------------------------+------------------------------
 Reporter:  conner_bw          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.5.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by conner_bw):

 Sorry, to be more clear:

 The problem is in the function {{{check_upload_size()}}}

 WordPress Core invokes this function as follows:
 {{{add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );}}}

 Therefore, {{{$file}}} could be changed by others. That should be the
 default user case. WordPress Core should defensively deal with this not
 ignore this.

 Otherwise, WordPress core should not stack check_upload_size() onto
 wp_handle_upload_prefilter.

 Thanks for your help!

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24761#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list