Skip to content

Commit

Permalink
Fix Regex (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotei-litespeed authored Dec 17, 2024
1 parent 099a7f5 commit 2579f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public function webp_support()
}
}

if (preg_match('/Firefox\/(\d+)/iU', $_SERVER['HTTP_USER_AGENT'], $matches)) { // TODO: Test if needs `/U`
if (preg_match('/Firefox\/(\d+)/i', $_SERVER['HTTP_USER_AGENT'], $matches)) {
if ($matches[1] >= 65) {
return true;
}
Expand Down

0 comments on commit 2579f5f

Please sign in to comment.