New helper function fetch_header()

This commit is contained in:
Steffen Lange 2023-02-04 13:12:59 +01:00
parent 2e7927c057
commit b110ec8539
5 changed files with 13 additions and 11 deletions

View file

@ -5,7 +5,7 @@ class EMClient extends PatchBase {
parent::__construct('eM Client Inc.', 'eM Client', 'https://www.emclient.com/download?lang=en');
}
function check() : bool {
if ($this->fetch('https://www.emclient.com/dist/latest/setup.msi', false))
if ($this->fetch_header('https://www.emclient.com/dist/latest/setup.msi'))
return $this->parse('/filename=emclient-v([\d\.]+)\.msi/');
return false;
}