Browse Source

Empty filter with no effect on the template

Julien Vaubourg 9 years ago
parent
commit
f93408013d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sources/controller.php

+ 1 - 1
sources/controller.php

@@ -221,7 +221,7 @@ dispatch_put('/settings', function() {
 
           if(!preg_match('/^#/', $opt) && !preg_match('/<TPL:/', $opt)) {
             foreach($config['openvpn_rm'] AS $filter) {
-              if(preg_match("/$filter/i", $opt)) {
+              if(!empty($filter) && preg_match("/$filter/i", $opt)) {
                 $filtered = true;
               }
             }