Make WordPress Core

Ticket #56340: diff2.diff

File diff2.diff, 657 bytes (added by hanshenrik, 23 months ago)

updated diff

  • src/wp-includes/class-phpass.php

    diff --git a/src/wp-includes/class-phpass.php b/src/wp-includes/class-phpass.php
    index 5411b364839..b3126f0aeeb 100644
    a b function gensalt_blowfish($input) 
    173173                $itoa64 = './ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    174174
    175175                $output = '$2a$';
    176                 $output .= chr(ord('0') + $this->iteration_count_log2 / 10);
    177                 $output .= chr(ord('0') + $this->iteration_count_log2 % 10);
     176                $output .= chr((int)(ord('0') + $this->iteration_count_log2 / 10));
     177                $output .= chr((int)(ord('0') + $this->iteration_count_log2 % 10));
    178178                $output .= '$';
    179179
    180180                $i = 0;