IAWL ideas, group B: sizes before work, one link rule, no stand-in locale, strict switches
- Request bodies from strangers are read only up to a cap, declared length or not: mail-service confirm, CSP reports, page views, MCP (maxBytes, 413). readCappedBody moves to shared/ (the consent log keeps exporting it). - searchContent / createSearchRoute / MCP search: queryLimit (default 200 characters, 10 words) before the database; an unknown ?locale is the default locale throughout. - Rich text: autolinks and links marked internal pass safeHref too; lexicalToMarkdown drops unsafe link targets. - truncate() never returns more than its limit (summary / meta autofill after validation). - resolveRoute answers null for a locale the site does not have (xx, all, *): no default-locale page under another code (page route past the proxy, /md/xx, MCP). - A 404 page that is a draft is not shown (resolveNotFoundPage, getNotFoundPage). - readPublished() access rule (exported); Site integrations readVersions: admin. - Plugin switches, buildCsp, buildSecurityHeaders and the seed guard refuse nonsense values at start; an unknown role name is met by nobody, requireRole throws on one. - Docs, AGENT.md, iapl-collection and iapl-audit skills. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e821d52d19
commit
ecf03c8dc0
+4
-2
@@ -56,8 +56,10 @@ Spread `defaultConverters` — you override only the nodes you want. The rest
|
||||
|
||||
**Links are filtered as in `<CMSLink>` (`safeHref`).** A custom link with an address outside `http(s)`,
|
||||
`mailto`, `tel`, `sms`, `#`, `/` (e.g. `javascript:`, `data:`) gets `href="#"` — also when it reached
|
||||
the database through an import, a seed or the API, bypassing the panel field. Internal links (`linkType: 'internal'`)
|
||||
are not touched. Turn off (fully trusted content only): `<RenderRichText data={…} safeLinks={false} />`.
|
||||
the database through an import, a seed or the API, bypassing the panel field. Since 1.17.1 one rule covers every
|
||||
stored link URL: an `autolink`, and a link marked `linkType: 'internal'`, are checked too (Payload's autolink
|
||||
converter prints `fields.url` whatever the link type), and `lexicalToMarkdown` (the `.md` routes, llms-full.txt)
|
||||
drops an unsafe target and keeps the label. Turn off (fully trusted content only): `<RenderRichText data={…} safeLinks={false} />`.
|
||||
|
||||
## Table of contents and heading anchors (1.11.1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user