Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
86f204f
Bound weblog template rendering and keep templates and macros per weblog
mraible Nov 17, 2026
1347a7f
Stop string calls from templates that would build a string past the o…
mraible Nov 18, 2026
4ff363c
Keep strings built in memory, macro calls and regular expressions ins…
mraible Nov 18, 2026
4724f54
Check regex replaces against the output limit as they run, and drop t…
mraible Nov 18, 2026
0c9c2bc
Refuse a split that would return more pieces than a template loop can…
mraible Nov 18, 2026
a1ddd1e
Keep template locations on swapped-in nodes and count only the split …
mraible Nov 19, 2026
be943d9
Bound expanding $utils calls before they run and stop over-counting c…
mraible Nov 20, 2026
526cecb
Count only the characters escapeHTML and escapeXML expand
mraible Nov 20, 2026
d1b50b7
Merge remote-tracking branch 'origin/roller-6.1.x' into template-limi…
mraible Nov 20, 2026
da47cdd
Read stored templates as text instead of encoding and decoding them
mraible Nov 20, 2026
ca0cc15
Parse templates with many nodes in linear time
mraible Nov 20, 2026
d387f49
Shorten long template error messages in the log and on the error page
mraible Nov 20, 2026
36f66c8
Count only the characters a case change or an escape really grows
mraible Nov 20, 2026
ada94bd
Refuse regular expressions that repeat a part that can match an empty…
mraible Nov 20, 2026
5e79d9b
Fail the render when a #foreach runs past 100,000 passes
mraible Nov 20, 2026
a6fc1bc
Count the strings and list items a render builds, and check lists, ma…
mraible Nov 20, 2026
37e1ab1
Bound $utils.addNofollow for its current implementation
mraible Nov 20, 2026
03782fe
Describe the render budget and the per-template macros in CHANGES
mraible Nov 20, 2026
71893f0
Measure map entries and appended lists as text, and count copied list…
mraible Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,24 @@

- **Weblog templates have render limits.** A page stops rendering, with a
logged error, once it writes more than `rendering.maxOutputChars` (10 MB)
or runs longer than `rendering.maxRenderSeconds` (30 seconds); `#foreach`
stops at 100,000 passes, and `String.repeat` isn't available. `#parse` and
`#include` load only the weblog's own templates, and macros defined inline
in a template stay with the page that defines them and the templates it
includes. Library macros stay global. Error pages no
longer show template ids (#335).
or runs longer than `rendering.maxRenderSeconds` (30 seconds), and the
page isn't cached. The same happens to a `#foreach` of more than 100,000
passes, a render that builds more than ten times `maxOutputChars` of
strings in memory or adds more than 1,000,000 items to lists and maps, a
number past 100,000 bits, and a regular expression that repeats a part
that can match an empty string. `String.repeat`, `format`, `join`, `lines`
and `splitWithDelimiters` aren't available, nor are static methods called
through `$x.class`. `#parse` and `#include` load only the weblog's own
templates. Error pages no longer show template ids (#335).
- **Macros defined in a template belong to that template.** A macro defined
inline in a template works in that page and in the templates it
`#parse`s, and one weblog's macro no longer replaces another's of the same
name. A custom theme that calls a macro defined in a different template,
which it doesn't `#parse`, now prints the call as text. Before, such a call
worked only once the defining template had been rendered since the server
started. Define the macro in the page that calls it, or `#parse` the
template that defines it. Library macros (`roller.vm`, `weblog.vm` and a
site's own `roller-custom.vm`) stay global (#335).

- **Entries with scripts or embeds open as HTML.** If an entry contains
scripts, frames, embedded objects, event-handler attributes or
Expand Down
Loading
Loading