tech:notes_python_config
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_python_config [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_python_config [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Python config | ||
| + | |||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | |||
| + | A new environment variable in Python to control parsing of email addresses | ||
| + | |||
| + | To mitigate CVE-2023-27043, | ||
| + | |||
| + | This update introduces a new PYTHON_EMAIL_DISABLE_STRICT_ADDR_PARSING environment variable. When you set this variable to true, the previous, less strict parsing behavior is the default for the entire system: | ||
| + | |||
| + | ~~~bash | ||
| + | export PYTHON_EMAIL_DISABLE_STRICT_ADDR_PARSING=true | ||
| + | ~~~ | ||
| + | |||
| + | However, individual calls to the affected functions can still enable stricter behavior. | ||
| + | |||
| + | You can achieve the same result by creating the / | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | [email_addr_parsing] | ||
| + | PYTHON_EMAIL_DISABLE_STRICT_ADDR_PARSING = true | ||
| + | ~~~ | ||
| + | |||
| + | For more information, | ||
| + | |||
