mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
7da9b26363
The model id is interpolated into the single-quoted hx-vals attribute. A crafted id (reachable as an `active` model from any /v1/messages request on the unauthenticated localhost dashboard) could break out of the JSON or the attribute itself. Build valid JSON via JSON.stringify, then escapeHtml the whole attribute value; the browser decodes the entities before htmx reads it, so well-formed ids are unaffected. Closes #58. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>