Skip to content

Deprecate the fact that the parent, block, and attribute functions are always allowed in a sandboxed template#4813

Merged
fabpot merged 1 commit into
twigphp:3.xfrom
fabpot:parent-block-attribute-sandbox-defaults-deprecation
May 24, 2026
Merged

Deprecate the fact that the parent, block, and attribute functions are always allowed in a sandboxed template#4813
fabpot merged 1 commit into
twigphp:3.xfrom
fabpot:parent-block-attribute-sandbox-defaults-deprecation

Conversation

@fabpot

@fabpot fabpot commented May 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…ons are always allowed in a sandboxed template
@fabpot fabpot merged commit 89e79c2 into twigphp:3.x May 24, 2026
39 of 40 checks passed
@fabpot fabpot deleted the parent-block-attribute-sandbox-defaults-deprecation branch May 24, 2026 19:22
fabpot added a commit that referenced this pull request May 25, 2026
…0 sandbox behavior for the extends/use tags and the parent/block/attribute functions (fabpot)

This PR was merged into the 3.x branch.

Discussion
----------

Add a strict mode to SecurityPolicy to opt-in to the 4.0 sandbox behavior for the extends/use tags and the parent/block/attribute functions

#4813 follow-up

As `@stof` mentioned on Slack, there is currently no way to avoid the deprecation if you want to forbid those tags.

Commits
-------

af7bf5e Add a strict mode to SecurityPolicy to opt-in to the 4.0 sandbox behavior for the extends/use tags and the parent/block/attribute functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant