From 816a3e3938eea7dd013b69fc7cbd0d3c99863833 Mon Sep 17 00:00:00 2001 From: Tim LSC Date: Tue, 17 Dec 2024 18:24:12 +0200 Subject: [PATCH] Fix Regex --- src/media.cls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media.cls.php b/src/media.cls.php index 6e5f185c5..122c74863 100644 --- a/src/media.cls.php +++ b/src/media.cls.php @@ -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; }