File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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%'
You can’t perform that action at this time.
0 commit comments