* finish task #6925.

This commit is contained in:
wangyidong
2020-02-28 15:14:54 +08:00
parent 172a9724e2
commit 0ab2f01fd7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1028,7 +1028,7 @@ class baseFixer
if(!isset($this->stripedFields[$fieldName]) and (!defined('RUN_MODE') or RUN_MODE != 'admin'))
{
$this->data->$fieldName = self::dataStripTags($this->data->$fieldName);
$this->data->$fieldName = self::stripDataTags($this->data->$fieldName);
/* Code for bug #2721. */
$this->data->$fieldName = baseValidater::replaceSpace2Tag($this->data->$fieldName);
@@ -1047,7 +1047,7 @@ class baseFixer
* @access public
* @return string
*/
public static function dataStripTags($data, $allowedTags = '')
public static function stripDataTags($data, $allowedTags = '')
{
if(empty($data)) return $data;
+1 -1
View File
@@ -48,7 +48,7 @@ class actionModel extends model
$action->extra = $extra;
/* Use purifier to process comment. Fix bug #2683. */
$action->comment = fixer::dataStripTags($comment);
$action->comment = fixer::stripDataTags($comment);
/* Process action. */
$action = $this->loadModel('file')->processImgURL($action, 'comment', $this->post->uid);