Skip to content

Commit 2974da9

Browse files
authored
LB-422 Use stripos for PHP 7.4 compatibility (#203)
1 parent 4b23526 commit 2974da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h5p.classes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5049,7 +5049,7 @@ private function _filter_xss_attributes($attr, $allowedStyles = FALSE) {
50495049
// Allow certain styles
50505050

50515051
// Prevent font family from getting split wrong because of the ; in "
5052-
if (str_contains($match[1], 'font-family')) {
5052+
if (stripos($match[1], 'font-family') !== false) {
50535053
$match[1] = str_replace('"', "'", $match[1]);
50545054
}
50555055

0 commit comments

Comments
 (0)