From 2579f5fdf13212b96818d034c2b639831002db99 Mon Sep 17 00:00:00 2001 From: Tim <162806658+timotei-litespeed@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:40:16 +0200 Subject: [PATCH] Fix Regex (#788) --- 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; }