UltraVNC: fix regex again

This commit is contained in:
Steffen Lange 2021-01-29 13:07:58 +01:00
parent 0b40cc5f94
commit ce92c44b48

View file

@ -5,8 +5,10 @@ class UltraVNC extends PatchBase {
parent::__construct('UltraVNC Team', 'UltraVNC', 'https://www.uvnc.com/downloads/ultravnc.html'); parent::__construct('UltraVNC Team', 'UltraVNC', 'https://www.uvnc.com/downloads/ultravnc.html');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://www.uvnc.com/downloads/ultravnc.html')) if ($this->fetch('https://www.uvnc.com/downloads/ultravnc.html')) {
return $this->parse('/[Dd]ownload [Uu]ltra[Vv][Nn][Cc] ([\d\.]+)/'); $this->data = utf8_decode($this->data);
return $this->parse('/[Ll]atest.[Vv]ersion.+[Rr]elease.([\d\.]+)/');
}
return false; return false;
} }
} }