From 02150d5ef88b3ee3a108f4778b63e8e3194c0276 Mon Sep 17 00:00:00 2001 From: haoouba <2323333339@qq.com> Date: Sun, 16 May 2021 22:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/factory.php | 2 +- public/include.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/factory.php b/core/factory.php index bc5eb79..6c61727 100644 --- a/core/factory.php +++ b/core/factory.php @@ -13,7 +13,7 @@ class Intercept $sum = (int)Typecho_Request::getInstance()->sum; if (!$sum) throw new Typecho_Widget_Exception('请输入计算结果!', 403); session_start(); - if ($sum !== $_SESSION['commentCode']) throw new Typecho_Widget_Exception('计算结果有误,请检查!', 403); + if ($sum != $_SESSION['commentCode']) throw new Typecho_Widget_Exception('计算结果有误,请检查!', 403); /* 用户输入内容画图模式 */ if (preg_match('/\{!\{(.*)\}!\}/', $comment['text'], $matches)) { diff --git a/public/include.php b/public/include.php index be85c96..c4f2147 100644 --- a/public/include.php +++ b/public/include.php @@ -40,6 +40,6 @@ options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?> - + options->JCustomHeadEnd() ?>