Don't log password

This commit is contained in:
Jamie Cameron
2008-02-13 18:40:46 +00:00
parent 63c283c3aa
commit 017ab2f4e3
2 changed files with 5 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ else {
}
}
unlink($nfile);
delete($dump->{'pass'});
&webmin_log("backup", undef, undef, $dump);
}

View File

@@ -32,6 +32,7 @@ if ($in{'delete'}) {
&foreign_call("cron", "delete_cron_job", $job);
&unlock_file($job->{'file'});
}
delete($dump->{'pass'});
&webmin_log("delete", undef, $dump->{'id'}, $dump);
&redirect("");
}
@@ -114,7 +115,9 @@ else {
}
&unlock_file(&cron::cron_file($job)) if ($job);
&webmin_log($in{'id'} ? "modify" : "create", undef, $dump->{'id'}, $dump);
delete($dump->{'pass'});
&webmin_log($in{'id'} ? "modify" : "create", undef,
$dump->{'id'}, $dump);
if ($in{'savenow'}) {
&redirect("backup.cgi?id=$dump->{'id'}");
}