mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Substitute Product name in privileges
This commit is contained in:
parent
265be6f5ab
commit
95cb619ca1
@ -136,7 +136,7 @@ if (is_array($priv_list)) {
|
||||
foreach($priv_list as $pname => $pdata) {
|
||||
if (in_array($pname, $a_user['priv']))
|
||||
continue;
|
||||
$desc = addslashes($pdata['descr']);
|
||||
$desc = addslashes(preg_replace("/pfSense/i", $g['product_name'], $pdata['descr']));
|
||||
$jdescs .= "descs[{$id}] = '{$desc}';\n";
|
||||
$id++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user