Add a check to the parser to disable links
This commit is contained in:
parent
82e595b3e0
commit
7eaec5fcc5
1 changed files with 4 additions and 2 deletions
|
@ -77,7 +77,7 @@ class Parser extends Parserus
|
|||
: $this->c->config->a_bb_white_sig
|
||||
)
|
||||
: [];
|
||||
$blackList = null;
|
||||
//$blackList = null;
|
||||
} else {
|
||||
$whiteList = 1 === $this->c->config->b_message_bbcode
|
||||
? (empty($this->c->config->a_bb_white_mes) && empty($this->c->config->a_bb_black_mes)
|
||||
|
@ -85,9 +85,11 @@ class Parser extends Parserus
|
|||
: $this->c->config->a_bb_white_mes
|
||||
)
|
||||
: [];
|
||||
$blackList = null;
|
||||
//$blackList = null;
|
||||
}
|
||||
|
||||
$blackList = 1 === $this->c->user->g_post_links ? null : ['email', 'url', 'img'];
|
||||
|
||||
$this->setAttr('isSign', $isSignature)
|
||||
->setWhiteList($whiteList)
|
||||
->setBlackList($blackList)
|
||||
|
|
Loading…
Add table
Reference in a new issue