changelog/release-6-4-18-1/2022-12-21-add-twig-filter-improvments.md
Rama trunk · réplica de lectura del repositorio original.
---
title: Add twig filter improvements
issue: 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:
```yaml
shopware:
twig:
allowed_php_functions: [ "is_bool" ]
```