This commit is contained in:
wangyidong
2019-09-06 09:44:58 +08:00
parent 05d385aefe
commit 6f38d68c1d
3 changed files with 55 additions and 37 deletions
+1 -2
View File
@@ -48,8 +48,7 @@ class actionModel extends model
$action->extra = $extra;
/* Use purifier to process comment. Fix bug #2683. */
$_POST['comment'] = $comment;
$action->comment = fixer::input('post')->stripTags('comment')->get('comment');
$action->comment = fixer::dataStripTags($comment);
/* Process action. */
$action = $this->loadModel('file')->processImgURL($action, 'comment', $this->post->uid);