Skip to content

Commit

Permalink
✨ 优化验证码的判断
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed May 8, 2024
1 parent 2dd5427 commit 0e2c0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fun/opt.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ function pk_captcha_validate($type, $val, $success_clear = true)
{
$res = false;
pk_session_call(function () use ($type, $val, $success_clear, &$res) {
if (isset($_SESSION[$type . '_vd']) && $_SESSION[$type . '_vd'] == $val) {
if (isset($_SESSION[$type . '_vd']) && strtolower($_SESSION[$type . '_vd']) == strtolower($val)) {
$res = true;
if ($success_clear) {
unset($_SESSION[$type . '_vd']);
Expand Down

0 comments on commit 0e2c0b7

Please sign in to comment.