From d2bbd24b5f9f7536e2a32caff2dcd3f06126fcb7 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Fri, 29 Jan 2021 18:28:05 +0100 Subject: [PATCH] UltraVNC: use unicode support in re --- modules/UltraVNC.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/UltraVNC.php b/modules/UltraVNC.php index 2fc4e6a..cf17ca9 100644 --- a/modules/UltraVNC.php +++ b/modules/UltraVNC.php @@ -5,10 +5,8 @@ class UltraVNC extends PatchBase { parent::__construct('UltraVNC Team', 'UltraVNC', 'https://www.uvnc.com/downloads/ultravnc.html'); } function check() : bool { - if ($this->fetch('https://www.uvnc.com/downloads/ultravnc.html')) { - $this->data = utf8_decode($this->data); - return $this->parse('/[Ll]atest.[Vv]ersion.+[Rr]elease.([\d\.]+)/'); - } + if ($this->fetch('https://www.uvnc.com/downloads/ultravnc.html')) + return $this->parse('/[Ll]atest.[Vv]ersion.+[Rr]elease.([\d\.]+)/u'); return false; } }