mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Fix code scanning alert no. 238: Log entries created from user input
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
cbb22b9bc1
commit
c0422cb7fa
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ namespace Ombi.Controllers.V2
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue