diff options
author | Warren Baker <warren@decoy.co.za> | 2013-07-12 09:57:47 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2013-07-12 09:57:47 +0200 |
commit | e811fcbecb2ce72df9b2b7f7f4c5df6869fa423a (patch) | |
tree | b557eab4b93773cdb274708481b670577fc6eb9a /usr | |
parent | d57da568cb4440d51f06798cca98e78fc9610152 (diff) | |
download | pfsense-e811fcbecb2ce72df9b2b7f7f4c5df6869fa423a.zip pfsense-e811fcbecb2ce72df9b2b7f7f4c5df6869fa423a.tar.gz |
Substitute Product name in privileges
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_usermanager_addprivs.php | 2 |
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 5946db8..c7e1d3a 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++; } |