Merge branch 'MDL-81353-401' of https://github.com/snake/moodle into MOODLE_401_STABLE

This commit is contained in:
Huong Nguyen 2024-03-26 10:34:46 +07:00
commit c14e75a017
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

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