mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
调整关键词过滤
This commit is contained in:
parent
d7a9fc09a7
commit
c1d7242a88
@ -101,6 +101,8 @@ class Auto extends Controller
|
||||
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>');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ class Keys extends Controller
|
||||
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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user