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