oliver-zehentleitner / maity

hub: checklist lines, restricted texts and the public bio use plain_text.plain; plain-text.md corrected

Sign in to report

tsk-meba3dzxhg3z Open

Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: design / docs drift.

What is wrong

  • hub/src/maity_hub/plain_text.py:16 has NOT_PLAIN = {Cc, Cf, Cs, Co, Cn, Zl, Zp} and its docstring says "One module, so every field gets the same answer". Narrower copies remain:
  • hub/src/maity_hub/routes/projects.py:161: NOT_PLAIN = {Cc, Cf, Zl, Zp} (no Cs, Co, Cn).
  • hub/src/maity_hub/routes/restricted.py:47: its own set, no Cn.
  • hub/src/maity_hub/public_people.py:37 (_FORBIDDEN, used by bio_problem): only C0 and bidi controls; C1, zero-width characters, U+2028, private use and lone surrogates pass.
  • hub/context/plain-text.md says the set "is the one routes/projects.py NOT_PLAIN already used … Cs and Co included as there", false at 588f911b.

Proposal: these fields call plain_text.plain(value, keep="\n\t"), keeping their existing reasons; fix the context paragraph.

Effort / risk: S. Low-medium risk (a few stored values may start being refused on edit).