From ad01710ce6ea962609b9f497d99ee9d3fced6599 Mon Sep 17 00:00:00 2001 From: renothing <261274+renothing@users.noreply.github.com> Date: Mon, 5 Jun 2023 11:01:12 +0800 Subject: [PATCH] Fix incorrect background dynamic property in captcha library --- libs/Captcha/CaptchaBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Captcha/CaptchaBuilder.php b/libs/Captcha/CaptchaBuilder.php index bbd8602eb..356da5aa0 100644 --- a/libs/Captcha/CaptchaBuilder.php +++ b/libs/Captcha/CaptchaBuilder.php @@ -427,7 +427,7 @@ class CaptchaBuilder implements CaptchaBuilderInterface $color = $this->backgroundColor; $bg = imagecolorallocate($image, $color[0], $color[1], $color[2]); } - $this->background = $bg; + $this->backgroundColor = $bg; imagefill($image, 0, 0, $bg); } else { // use a random background image