aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-01-29 16:24:32 +0100
committerAndreas Fischer <bantu@phpbb.com>2011-01-30 00:49:53 +0100
commitb32bf5aa35be3d5d77fc3ee7be418a988bc10d44 (patch)
tree75685d533ec7df1ca9224ece865346f6cb37d582
parentafc856417f89114d7ea56eb0b290f7604dba0d6b (diff)
downloadforums-b32bf5aa35be3d5d77fc3ee7be418a988bc10d44.tar
forums-b32bf5aa35be3d5d77fc3ee7be418a988bc10d44.tar.gz
forums-b32bf5aa35be3d5d77fc3ee7be418a988bc10d44.tar.bz2
forums-b32bf5aa35be3d5d77fc3ee7be418a988bc10d44.tar.xz
forums-b32bf5aa35be3d5d77fc3ee7be418a988bc10d44.zip
[ticket/9985] 3D Wave CAPTCHA: Pass min/max in the correct order to mt_rand().
PHPBB3-9985
-rw-r--r--phpBB/includes/captcha/captcha_gd_wave.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/captcha/captcha_gd_wave.php b/phpBB/includes/captcha/captcha_gd_wave.php
index f706c98d43..27422513d9 100644
--- a/phpBB/includes/captcha/captcha_gd_wave.php
+++ b/phpBB/includes/captcha/captcha_gd_wave.php
@@ -62,8 +62,8 @@ class captcha
'y' => mt_rand(10, 17)
),
'lower_left' => array(
- 'x' => mt_rand($img_x - 5, $img_x - 45),
- 'y' => mt_rand($img_y - 0, $img_y - 15)
+ 'x' => mt_rand($img_x - 45, $img_x - 5),
+ 'y' => mt_rand($img_y - 15, $img_y - 0),
),
);