Empty filter with no effect on the template
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user