mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 01:16:18 -05:00
A README comes from an untrusted remote. * Escape the README headline: snippet() marks matches with control characters, the text is HTML-escaped, then the markers become <b>. Headlines are rendered as HTML (HeadlineText). * Never follow a symlinked README (O_NOFOLLOW, regular files only). * Convert markdown line by line with linear-time patterns. The old multiline patterns backtracked polynomially; a README of blank lines never finished, and runs of `<!--`, `![` or `<` were quadratic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| api.py | ||
| conftest.py | ||
| downloader.py | ||
| errors.py | ||
| lib.py | ||
| models.py | ||
| schema.py | ||