diff options
author | MichaelRoosz <michael.roosz@web.de> | 2022-04-25 12:02:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 12:02:49 +0300 |
commit | e7febeb860fef1c9cf45d439c17f280a17327dd4 (patch) | |
tree | 55059dd1f4c77f8b833a2525f2ab556c668e109e /core | |
parent | 5f376f75af1a166fa8e66fc6843e7e1f30cee4d4 (diff) |
Fix some "Passing null to parameter" warnings (#19135)
* Fix "passing null to parameter" errors
* Fix "passing null to parameter" error
* Fix "passing null to parameter" errors
* Fix "passing null to parameter" error
* Update fix for "passing null to parameter" error
Co-authored-by: Michael Roosz <michael.roosz@check24.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Twig.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Twig.php b/core/Twig.php index 5bbf10eaaa..4aa9e6b4ea 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -360,6 +360,11 @@ class Twig protected function addFilter_safeDecodeRaw() { $rawSafeDecoded = new TwigFilter('rawSafeDecoded', function ($string) { + + if ($string === null) { + return ''; + } + $string = str_replace('+', '%2B', $string); $string = str_replace(' ', html_entity_decode(' ', ENT_COMPAT | ENT_HTML401, 'UTF-8'), $string); |