Make WordPress Core

Ticket #10284: compat.patch

File compat.patch, 412 bytes (added by jrush_aplus, 15 years ago)

Patch to allow compat.php hash_hmac implementation to match PHP hash_hmac output

  • compat.php

    old new  
    6767
    6868       if (strlen($key) > 64)
    6969               $key = pack($pack, $algo($key));
    70        else if (strlen($key) < 64)
     70       if (strlen($key) < 64)
    7171               $key = str_pad($key, 64, chr(0));
    7272
    7373       $ipad = (substr($key, 0, 64) ^ str_repeat(chr(0x36), 64));