MDL-81353 auth_lti: fix str_contains usage in cookie_helper

This failure was being masked by Symfony\Polyfill\Php80 during unit
tests.
This commit is contained in:
Jake Dallimore 2024-03-26 09:28:01 +08:00
parent 17ed404ccc
commit 318e2344c0
No known key found for this signature in database

View File

@ -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;
}
/**