diff --git a/auth/lti/classes/local/ltiadvantage/utility/cookie_helper.php b/auth/lti/classes/local/ltiadvantage/utility/cookie_helper.php index 4a1d6189b48..e43695f9f14 100644 --- a/auth/lti/classes/local/ltiadvantage/utility/cookie_helper.php +++ b/auth/lti/classes/local/ltiadvantage/utility/cookie_helper.php @@ -276,9 +276,9 @@ final class cookie_helper { bool $casesensitive): bool { if ($casesensitive) { - return str_contains($headerstring, $attribute); + return strpos($headerstring, $attribute) !== false; } - return str_contains(strtolower($headerstring), strtolower($attribute)); + return strpos(strtolower($headerstring), strtolower($attribute)) !== false; } /**