Skip to content

[6.x] Block methods in Antlers by default#14042

Merged
jasonvarga merged 2 commits intostatamic:6.xfrom
JohnathonKoster:antlers-stuff
Feb 24, 2026
Merged

[6.x] Block methods in Antlers by default#14042
jasonvarga merged 2 commits intostatamic:6.xfrom
JohnathonKoster:antlers-stuff

Conversation

@JohnathonKoster
Copy link
Copy Markdown
Contributor

@JohnathonKoster JohnathonKoster commented Feb 23, 2026

This PR blocks method calls within antlers enabled fields by default. This can be opted into via the antlers.allowMethodsInContent config. Also fixes the isEvaluatingUserData and isEvaluatingData global state flags being incorrectly reset after nested value evaluations.

@jasonvarga jasonvarga changed the title [6.x] Antlers Config [6.x] Block methods in Antlers by default Feb 24, 2026
@jasonvarga jasonvarga merged commit 97bbbec into statamic:6.x Feb 24, 2026
13 checks passed
@marcorieser
Copy link
Copy Markdown
Contributor

@jasonvarga, this should be marked as breaking in the release notes as well.

@jasonvarga
Copy link
Copy Markdown
Member

Out of curiosity, what methods were you calling?

@marcorieser
Copy link
Copy Markdown
Contributor

@jasonvarga none, but if you do and update the site, it can break, right?

@jasonvarga
Copy link
Copy Markdown
Member

Yes but it's not something that someone would've/should've been doing. I'd consider it a bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants