mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-28 21:17:36 +00:00
_category() let menu.d's UI catch-all "mesh" (declared by media modules like peertube/lyrion) pass through as deployment category "mesh" simply because the token matched — corrupting per-category stats. Replace the membership check with an explicit MENU_CATEGORY_MAP, defaulting unknown tokens to the neutral "infra" instead of a confidently wrong category. Also make _toml_str escape control characters (\n \t \r) per TOML basic- string rules — an unescaped literal newline in a field value previously emitted a file tomllib itself could not reparse. Add roundtrip tests for quote/backslash and control-character values, and replace a vacuous "category in the whole enum" assertion with the exact expected value. Co-Authored-By: Gerald KERMA <devel@cybermind.fr> |
||
|---|---|---|
| .. | ||
| brainstorm/1465198-1777214258 | ||
| sdd | ||