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() ?>