diff --git a/setup/config.php b/setup/config.php
index 6079ee16fa..63f9aed157 100644
--- a/setup/config.php
+++ b/setup/config.php
@@ -85,8 +85,12 @@
while (list($setting,$value) = @each($newsettings))
{
- // echo '
Updating: ' . $setting . '=' . $value;
- @$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'");
+ /*echo '
Updating: ' . $setting . '=' . $value; */
+ /* Don't erase passwords, since we also do not print them below */
+ if(!ereg('passwd',$value) && !ereg('password',$value) && !ereg('root_pw',$value))
+ {
+ @$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'");
+ }
if($value)
{
$phpgw_setup->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) VALUES ('phpgwapi','" . $phpgw_setup->db->db_addslashes($setting)