diff --git a/PHP/purecaptcha.php b/PHP/purecaptcha.php index f0b2d20..e135e85 100644 --- a/PHP/purecaptcha.php +++ b/PHP/purecaptcha.php @@ -38,8 +38,9 @@ function __construct() * @param integer $length * @return string */ - protected function randomText($length=4) + protected function randomText() { + $length = mt_rand(4,6) ; $res=""; for ($i=0;$i<$length;++$i) $res.=$this->chars[mt_rand(0,strlen($this->chars)-1)]; diff --git a/PHP/purecaptcha_usage.php b/PHP/purecaptcha_usage.php index a0f1b72..df84ce9 100644 --- a/PHP/purecaptcha_usage.php +++ b/PHP/purecaptcha_usage.php @@ -21,10 +21,9 @@ function checkCaptcha($response)
- - +(Reload)
+
\ No newline at end of file