mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Mail review stage 7a: mail passwords, the OAuth client secret and the mail tokens are stored encrypted with a key from config.php's backup key, kept as typed only when there is no key, with a warning in Admin > Settings > Mail when they can't be read (database 4.3.1); pictures from other sites in client email are held back on a ticket, its quick look and its work order until Show pictures is clicked; the sign-in page no longer loads the mail server's password; 26.12.3 changelog
This commit is contained in:
@@ -895,8 +895,10 @@ function settingsWrite($table, array $before, array $after) {
|
||||
} elseif (is_int($value) || is_float($value)) {
|
||||
$sets[] = "$column_sql = " . (is_float($value) ? rtrim(rtrim(sprintf('%.6F', $value), '0'), '.') : $value);
|
||||
} elseif (($fields[$column]['kind'] ?? '') === 'secret') {
|
||||
// escapeSql() would trim it and take out anything that looks like a tag - a password can have both
|
||||
$sets[] = "$column_sql = '" . mysqli_real_escape_string($mysqli, (string) $value) . "'";
|
||||
// escapeSql() would trim it and take out anything that looks like a tag - a password can have both. The mail
|
||||
// passwords and OAuth secrets encrypted (functions/mail_secret.php)
|
||||
$value = in_array($column, MAIL_SECRET_COLUMNS, true) && mailSecretReady() ? mailSecretSeal((string) $value) : (string) $value;
|
||||
$sets[] = "$column_sql = '" . mysqli_real_escape_string($mysqli, $value) . "'";
|
||||
} else {
|
||||
$sets[] = "$column_sql = '" . escapeSql((string) $value) . "'";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user