[wp-trac] [WordPress Trac] #20074: Attempt MD5 checksum verification in upgrader if available

WordPress Trac noreply at wordpress.org
Sun Sep 15 01:20:29 UTC 2013


#20074: Attempt MD5 checksum verification in upgrader if available
--------------------------------------------+------------------
 Reporter:  sivel                           |       Owner:
     Type:  task (blessed)                  |      Status:  new
 Priority:  normal                          |   Milestone:  3.7
Component:  Upgrade/Install                 |     Version:  2.8
 Severity:  normal                          |  Resolution:
 Keywords:  has-patch commit needs-testing  |
--------------------------------------------+------------------

Comment (by dd32):

 Correct, It's not handled at present as it was modelled on the previous
 (incorrect) implementation.

 The check would need to change to
 {{{
 $md5_file = md5_file( $tmpfname  );
 $content_md5 = bin2hex( base64_decode( $content_md5 ) );
 if ( $md5_file != $content_md5 ) {
  ...
 }}}

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


More information about the wp-trac mailing list