Navigation Menu

Skip to content

Commit

Permalink
调整关键词过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
zoujingli committed Sep 17, 2021
1 parent d7a9fc0 commit c1d7242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/wechat/controller/Auto.php
Expand Up @@ -101,6 +101,8 @@ protected function _form_filter(array &$data)
if ($this->request->isGet()) {
$public = dirname($this->request->basefile(true));
$this->defaultImage = "{$public}/static/theme/img/image.png";
} else {
$data['content'] = strip_tags($data['content'] ?? '', '<a>');
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/wechat/controller/Keys.php
Expand Up @@ -169,7 +169,7 @@ protected function _form_filter(array &$data)
if (WechatKeys::mk()->where($map)->count() > 0) {
$this->error('该关键字已经存在!');
}
$data['content'] = strip_tags($data['content'], '<a>');
$data['content'] = strip_tags($data['content'] ?? '', '<a>');
} elseif ($this->request->isGet()) {
$public = dirname($this->request->basefile(true));
$this->defaultImage = "{$public}/static/theme/img/image.png";
Expand Down

0 comments on commit c1d7242

Please sign in to comment.