更新
This commit is contained in:
parent
cd27486b67
commit
02150d5ef8
@ -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)) {
|
||||
|
@ -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() ?>
|
||||
|
Loading…
Reference in New Issue
Block a user