fixed custom filters

This commit is contained in:
Savetheinternet 2011-09-18 03:17:54 +10:00
parent 3d5c2ac5f5
commit 4cbf5b91bf

View File

@ -403,7 +403,6 @@
$did_not_match = true; $did_not_match = true;
break; break;
} }
}
if(!isset($did_not_match)) { if(!isset($did_not_match)) {
// Matched filter! // Matched filter!
if(isset($filter) && $filter['action'] == 'reject') { if(isset($filter) && $filter['action'] == 'reject') {
@ -411,6 +410,9 @@
} }
} }
} }
}
exit;
if($post['has_file']) { if($post['has_file']) {
if(!in_array($post['extension'], $config['allowed_ext']) && !in_array($post['extension'], $config['allowed_ext_files'])) if(!in_array($post['extension'], $config['allowed_ext']) && !in_array($post['extension'], $config['allowed_ext_files']))