Request log: write & < > as sent (closes #327) #329

Merged
clawbot merged 1 commits from issue-327-request-log-ampersand into next 2026-11-11 07:50:55 +01:00
1 Commits
Author SHA1 Message Date
sneak 07f68292d1 Request log: write & < > as sent (closes #327)
check / check (push) Waiting to run
Request lines were encoded with `json.Marshal`, which writes `&`, `<`
and `>` as `\u0026`, `\u003c` and `\u003e`. A query string or referer
then did not read as the visitor sent it, and `grep` for it found
nothing. Request lines now hold the three characters as sent, and stay
valid JSON: they are written by a `json.Encoder` with HTML escaping off.

Model: opus-5-5
2026-11-11 05:51:01 +00:00