security fix: Command built from user-controlled sources CWE-78

https://cwe.mitre.org/data/definitions/78.html
https://owasp.org/www-community/attacks/Command_Injection
This commit is contained in:
mhsanaei
2025-09-21 17:39:30 +02:00
parent 37c17357fc
commit eacfbc86b5
3 changed files with 36 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ func runWebServer() {
logger.InitLogger(logging.INFO)
case config.Notice:
logger.InitLogger(logging.NOTICE)
case config.Warn:
case config.Warning:
logger.InitLogger(logging.WARNING)
case config.Error:
logger.InitLogger(logging.ERROR)