Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 425 Bytes

2022-12-21-add-twig-filter-improvments.md

File metadata and controls

22 lines (15 loc) · 425 Bytes
title issue
Add twig filter improvements
NEXT-24667

Core

  • Added a SecurityExtension to allow only a whitelist of functions inside filters map, filter, reduce and sort.

Upgrade Information

Twig filter whitelist for map, filter, reduce and sort

The whitelist can be extended using a yaml configuration:

shopware:
    twig:
        allowed_php_functions: [ "is_bool" ]