Skip to content

Commit e31b6d9

Browse files
Merge pull request #6812 from mailcow/staging
Update 2025-09c
2 parents 24c62b2 + 455ef08 commit e31b6d9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

data/web/inc/init_db.inc.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function init_db_schema()
44
try {
55
global $pdo;
66

7-
$db_version = "19082025_1436";
7+
$db_version = "07102025_1015";
88

99
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
1010
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
@@ -1337,6 +1337,14 @@ function init_db_schema()
13371337
$pdo->query($create);
13381338
}
13391339

1340+
// Clear old app_passwd log entries
1341+
$pdo->exec("DELETE FROM logs
1342+
WHERE role != 'unauthenticated'
1343+
AND JSON_EXTRACT(`call`, '$[0]') = 'app_passwd'
1344+
AND JSON_EXTRACT(`call`, '$[1]') = 'edit'
1345+
AND (JSON_CONTAINS_PATH(`call`, 'one', '$[2].password')
1346+
OR JSON_CONTAINS_PATH(`call`, 'one', '$[2].password2'));");
1347+
13401348
// Mitigate imapsync argument injection issue
13411349
$pdo->query("UPDATE `imapsync` SET `custom_params` = ''
13421350
WHERE `custom_params` LIKE '%pipemess%'

0 commit comments

Comments
 (0)