Commit 18bdde00 authored by Marius Burkard's avatar Marius Burkard

- fixed using empty regex

parent e2968df7
......@@ -135,6 +135,9 @@ class validate_domain {
foreach($directives as $directive) {
$directive = trim($directive);
foreach($regex as $r) {
if(trim($r) == '') {
continue;
}
if(preg_match(trim($r),$directive)) {
$blocked = true;
$blocked_line .= $directive.'<br />';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment