refactor: Sanitize log inputs in user, auth, knowledge, and model handlers to enhance security
This commit is contained in:
@@ -145,7 +145,11 @@ func (h *MCPServiceHandler) UpdateMCPService(c *gin.Context) {
|
||||
updateFields["description"] = true
|
||||
}
|
||||
if enabled, ok := updateData["enabled"].(bool); ok {
|
||||
service.Enabled = enabled
|
||||
if enabled {
|
||||
service.Enabled = true
|
||||
} else {
|
||||
service.Enabled = false
|
||||
}
|
||||
updateFields["enabled"] = true
|
||||
}
|
||||
if transportType, ok := updateData["transport_type"].(string); ok {
|
||||
|
||||
Reference in New Issue
Block a user