Empty filter with no effect on the template

This commit is contained in:
Julien Vaubourg
2016-04-17 16:47:39 +02:00
parent 9917f50085
commit f93408013d

View File

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