Projet

Général

Profil

Révision a8cee257

Ajouté par Assos Assos il y a plus de 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/captcha/image_captcha/image_captcha.user.inc
31 31
  if ($code !== FALSE) {
32 32
    // Seed the random generators used for image CAPTCHA distortion based on session and code
33 33
    // to counter attacks that re-request the same challenge and pick the simplest image one or combine info.
34
    $seed = hexdec(substr(md5($captcha_sid . $code), 0, 8));
34
    $seed = (int) hexdec(substr(md5($captcha_sid . $code), 0, 8));
35 35
    srand($seed);
36 36
    mt_srand($seed);
37 37
    // Generate the image.

Formats disponibles : Unified diff