Skip to content

Commit

Permalink
Fix code scanning alert no. 238: Log entries created from user input
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
tidusjar and github-advanced-security[bot] authored Jan 3, 2025
1 parent cbb22b9 commit c0422cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ombi/Controllers/V2/WizardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public async Task<IActionResult> DatabaseConfig([FromBody] WizardDatabaseConfigu
return BadRequest();
}

_logger.LogInformation("Setting up database type: {0}", config.Type);
var sanitizedType = config.Type.Replace(Environment.NewLine, "").Replace("\n", "").Replace("\r", "");
_logger.LogInformation("Setting up database type: {0}", sanitizedType);

var connectionString = string.Empty;
if (config.Type == IDatabaseConfigurationService.MySqlDatabase)
Expand Down

0 comments on commit c0422cb

Please sign in to comment.