Skip to content
Snippets Groups Projects
Commit 18bdde00 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed using empty regex

parent e2968df7
No related branches found
No related tags found
No related merge requests found
Pipeline #5167 passed
......@@ -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 />';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment