mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 01:45:59 +00:00
[Web] clear old app_passwd log entries
This commit is contained in:
@@ -1338,12 +1338,12 @@ function init_db_schema()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clear old app_passwd log entries
|
// Clear old app_passwd log entries
|
||||||
if ($db_version == "07102025_1015") {
|
$pdo->exec("DELETE FROM logs
|
||||||
$pdo->query("DELETE FROM logs
|
WHERE role != 'unauthenticated'
|
||||||
WHERE JSON_EXTRACT(`call`, '$[0]') = 'app_passwd'
|
AND JSON_EXTRACT(`call`, '$[0]') = 'app_passwd'
|
||||||
AND JSON_EXTRACT(`call`, '$[1]') = 'edit'
|
AND JSON_EXTRACT(`call`, '$[1]') = 'edit'
|
||||||
AND role != 'unauthenticated';");
|
AND (JSON_CONTAINS_PATH(`call`, 'one', '$[2].password')
|
||||||
}
|
OR JSON_CONTAINS_PATH(`call`, 'one', '$[2].password2'));");
|
||||||
|
|
||||||
// Mitigate imapsync argument injection issue
|
// Mitigate imapsync argument injection issue
|
||||||
$pdo->query("UPDATE `imapsync` SET `custom_params` = ''
|
$pdo->query("UPDATE `imapsync` SET `custom_params` = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user