* finish task #6925.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user