'smarty' => '2.6.7',
'php' => '4.1.0'
));
- $propbag->add('version', '1.21');
+ $propbag->add('version', '1.22');
$propbag->add('event_hooks', array(
'frontend_saveComment' => true,
'external_plugin' => true,
$filter_authors = explode(';', $this->get_config('contentfilter_authors', $this->filter_defaults['authors']));
if (is_array($filter_authors)) {
foreach($filter_authors AS $filter_author) {
+ if (empty($filter_author)) {
+ continue;
+ }
if (preg_match('@' . $filter_author . '@', $addData['name'])) {
if ($filter_type == 'moderate') {
$this->log($logfile, $eventData['id'], 'MODERATE', PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS, $addData);
$filter_urls = explode(';', $this->get_config('contentfilter_urls', $this->filter_defaults['urls']));
if (is_array($filter_urls)) {
foreach($filter_urls AS $filter_url) {
+ if (empty($filter_url)) {
+ continue;
+ }
if (preg_match('@' . $filter_url . '@', $addData['url'])) {
if ($filter_type == 'moderate') {
$this->log($logfile, $eventData['id'], 'MODERATE', PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS, $addData);