Skip to content

Commit

Permalink
Description corrupted if there's an email within content #4756 (#4777)
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Oct 14, 2016
1 parent 97f84ad commit 6821c60
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/libraries/kunena/html/parser.php
Expand Up @@ -158,6 +158,17 @@ public static function stripBBCode($txt, $len=0, $html = true)
return;
}

if (JPluginHelper::isEnabled('content', 'emailcloak'))
{
$plugin = JPluginHelper::getPlugin('content', 'emailcloak');
$params = new JRegistry($plugin->params);

if ($params->get('mode', 1))
{
return $txt;
}
}

$bbcode = KunenaBbcode::getInstance(self::$relative);
$bbcode->SetLimit($len);
$bbcode->SetPlainMode(true);
Expand Down

0 comments on commit 6821c60

Please sign in to comment.