mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
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:
parent
17ed404ccc
commit
318e2344c0
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user