Inkscape: parse response header

This commit is contained in:
Steffen Lange 2024-04-22 18:31:35 +02:00
parent 9d42d9682a
commit 1c3fc3d868

View file

@ -5,8 +5,8 @@ class Inkscape extends PatchBase {
parent::__construct('Inkscape Authors', 'Inkscape', 'https://inkscape.org/release/'); parent::__construct('Inkscape Authors', 'Inkscape', 'https://inkscape.org/release/');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://inkscape.org/release/')) if ($this->fetch_header('https://inkscape.org/release/'))
return $this->parse('/<h1>Inkscape ([\d\.]+)<\/h1>/'); return $this->parse('/\/release\/inkscape-([\d\.]+)/');
return false; return false;
} }
} }