Make WordPress Core

Ticket #56340: diff.diff

File diff.diff, 568 bytes (added by hanshenrik, 2 years ago)
  • src/wp-includes/class-phpass.php

    diff --git a/src/wp-includes/class-phpass.php b/src/wp-includes/class-phpass.php
    index 5411b36483..059dd05493 100644
    a b class PasswordHash { 
    174174
    175175               $output = '$2a$';
    176176               $output .= chr(ord('0') + $this->iteration_count_log2 / 10);
    177                $output .= chr(ord('0') + $this->iteration_count_log2 % 10);
     177               $output .= chr((int)(ord('0') + $this->iteration_count_log2 % 10));
    178178               $output .= '$';
    179179
    180180               $i = 0;