Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9985

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.8
    • 3.0.9-RC1
    • Other
    • None
    • PHP 5.3.5

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: