summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2013-07-12 09:59:10 +0200
committerWarren Baker <warren@decoy.co.za>2013-07-12 09:59:10 +0200
commit95cb619ca11639e73cff6b0a31389fa8da261d01 (patch)
treefeaaf004230159c4c3234193cfd19ab986ad2362
parent265be6f5ab7d5546a8f26ae6bcae33712f861102 (diff)
downloadpfsense-95cb619ca11639e73cff6b0a31389fa8da261d01.zip
pfsense-95cb619ca11639e73cff6b0a31389fa8da261d01.tar.gz
Substitute Product name in privileges
-rw-r--r--usr/local/www/system_usermanager_addprivs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager_addprivs.php b/usr/local/www/system_usermanager_addprivs.php
index edfb2ad..e2c67b9 100644
--- a/usr/local/www/system_usermanager_addprivs.php
+++ b/usr/local/www/system_usermanager_addprivs.php
@@ -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++;
}
OpenPOWER on IntegriCloud