mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 22:15:31 +01:00
[ticket/10042] GD CAPTCHA: Round offset to the next pixel.
PHPBB3-10042
This commit is contained in:
parent
5ab4dc2983
commit
c6c2a23ecb
@ -77,7 +77,7 @@ class captcha
|
||||
{
|
||||
$denom = ($code_len - $i);
|
||||
$denom = max(1.3, $denom);
|
||||
$offset[$i] = mt_rand(0, (1.5 * $width_avail) / $denom);
|
||||
$offset[$i] = mt_rand(0, (int) round((1.5 * $width_avail) / $denom));
|
||||
$width_avail -= $offset[$i];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user