Skip to content

Commit

Permalink
Fixing PHP mt_rand issue to generate captcha images
Browse files Browse the repository at this point in the history
  • Loading branch information
jegelstaff committed Aug 2, 2024
1 parent 0c8f8aa commit c620853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/icms/form/elements/captcha/ImageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function drawCode() {
// write text to image
$Angle = mt_rand(10, 30);
if (($i % 2)) {
$Angle = mt_rand(-10, -30);
$Angle = mt_rand(-30, -10);
}

// select random font size
Expand Down

0 comments on commit c620853

Please sign in to comment.