Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9985

3D Wave CAPTCHA mt_rand() does not check order of min/max values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.9-RC1
    • 3.0.8
    • Other
    • None
    • PHP 5.3.5

      Topic from phpbb.com: http://www.phpbb.com/community/viewtopic.php?f=46&t=2116575

      In PHP 5.3.4, they changed it so that mt_rand(min, max) throws an error message if the min and max values are not in the right order when calling the function. The 3D Wave CAPTCHA does not check the order, so the image is not successfully generated.

      Error while creating image
      » Error in /includes/captcha/captcha_gd_wave.php on line 65: mt_rand(): max(315) is smaller than min(355)
      Error while creating image
      » Error in /includes/captcha/captcha_gd_wave.php on line 66: mt_rand(): max(81) is smaller than min(96)

            nickvergessen Joas Schilling
            Noxwizard Patrick Webster
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: