UltraVNC: use unicode support in re

This commit is contained in:
Steffen Lange 2021-01-29 18:28:05 +01:00
parent ce92c44b48
commit d2bbd24b5f

View file

@ -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;
}
}