From 8fd5104638fe7d589edeeb96e08ad5cbb8241b55 Mon Sep 17 00:00:00 2001 From: arnesteinbach <69790207+arnesteinbach@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:53:21 +0100 Subject: [PATCH] fix curly braces string access Array and string offset access syntax with curly braces is no longer working --- Application/Files/PiwikTracker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Files/PiwikTracker.php b/Application/Files/PiwikTracker.php index d7812de..fdda324 100644 --- a/Application/Files/PiwikTracker.php +++ b/Application/Files/PiwikTracker.php @@ -520,7 +520,7 @@ protected static function domainFixup($domain) if (strlen($domain) > 0) { $dl = strlen($domain) - 1; // remove trailing '.' - if ($domain{$dl} === '.') { + if ($domain[$dl] === '.') { $domain = substr($domain, 0, $dl); } // remove leading '*'