This commit is contained in:
haoouba 2021-05-16 22:14:12 +08:00
parent cd27486b67
commit 02150d5ef8
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -40,6 +40,6 @@
<?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>
<script src="<?php $this->options->themeUrl('assets/cursor/' . $this->options->JCursorEffects); ?>" async></script>
<?php endif; ?>
<script src="<?php $this->options->themeUrl('assets/js/joe.global.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.global.min.js?v=20210516'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.short.min.js'); ?>"></script>
<?php $this->options->JCustomHeadEnd() ?>