Skip to content

Commit

Permalink
Update captcha.gif.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbot-dot authored Jul 2, 2023
1 parent 9399d50 commit 38ec0a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions danger_zone/captcha.gif.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function generateCaptcha($width = 1240, $height = 120, $characters = 24)
// Characters other than non-accent Latin characters and Arabic numerals, such as the letter æ,
// may cause the captcha to use all letters it chooses to use.
$charSet = '123456789*()&^%$£!<>{}()[]?.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
$randomString = '';
for ($i = 0; $i < $characters; $i++) {
$randomString .= $charSet[rand(0, strlen($charSet) - 1)];
}
Expand Down

0 comments on commit 38ec0a4

Please sign in to comment.