fix: INI newline injection in backtest config generation

Add ini_safe() helper that strips CR/LF from user-supplied string params
before they are written into terminal.ini and backtest_config.ini.
Applies to: expert path, symbol, timeframe, set_file — any value that
could carry an embedded newline and inject extra INI directives.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Devid HW
2026-04-23 01:24:59 +07:00
co-authored by Claude Sonnet 4.6
parent 05214ff34b
commit b6171d0c56
2 changed files with 13 additions and 8 deletions
Generated
+1 -1
View File
@@ -481,7 +481,7 @@ dependencies = [
[[package]]
name = "mt5-quant"
version = "1.32.2"
version = "1.32.1"
dependencies = [
"anyhow",
"base64",