Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichaelRoosz <michael.roosz@web.de>2022-04-25 12:02:49 +0300
committerGitHub <noreply@github.com>2022-04-25 12:02:49 +0300
commite7febeb860fef1c9cf45d439c17f280a17327dd4 (patch)
tree55059dd1f4c77f8b833a2525f2ab556c668e109e /core
parent5f376f75af1a166fa8e66fc6843e7e1f30cee4d4 (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.php5
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('&nbsp;', html_entity_decode('&nbsp;', ENT_COMPAT | ENT_HTML401, 'UTF-8'), $string);