mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-03 02:23:48 +00:00
Default Settings: Obfuscate sensitive values (little better).
This commit is contained in:
@@ -403,7 +403,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
}
|
||||
echo " </select>\n";
|
||||
}
|
||||
elseif (substr_count(strtolower($subcategory), '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
elseif ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
echo " <input class='formfld' type='password' name='default_setting_value' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"".$default_setting_value."\">\n";
|
||||
}
|
||||
elseif (
|
||||
|
||||
@@ -395,7 +395,7 @@ else {
|
||||
else if ($category == "domain" && $subcategory == "template" && $name == "name" ) {
|
||||
echo " ".ucwords($row['default_setting_value']);
|
||||
}
|
||||
else if (substr_count(strtolower($subcategory), '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
|
||||
echo " ".str_repeat('*', strlen($row['default_setting_value']));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user