fix(security): SSRF log injection and folder permissions

This commit is contained in:
2026-05-17 14:13:38 +02:00
parent 72a813cfc1
commit 94fa9de6a7
5 changed files with 41 additions and 14 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ func AutoAssignWorker(database *db.Database) {
nextCommand.CommandID, err)
} else {
log.Printf("✅ Commande %d auto-assignée", nextCommand.CommandID)
database.RemoveCommandFromQueue(nextCommand.CommandID)
if err := database.RemoveCommandFromQueue(nextCommand.CommandID); err != nil {
log.Printf("⚠️ Impossible de retirer la commande %d de la queue: %v", nextCommand.CommandID, err)
}
}
}
}