From 1c3fc3d8683fc1aa74221e03c0ef85d8a0a77998 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 22 Apr 2024 18:31:35 +0200 Subject: [PATCH] Inkscape: parse response header --- modules/Inkscape.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Inkscape.php b/modules/Inkscape.php index 90db430..80f11e4 100644 --- a/modules/Inkscape.php +++ b/modules/Inkscape.php @@ -5,8 +5,8 @@ class Inkscape extends PatchBase { parent::__construct('Inkscape Authors', 'Inkscape', 'https://inkscape.org/release/'); } function check() : bool { - if ($this->fetch('https://inkscape.org/release/')) - return $this->parse('/

Inkscape ([\d\.]+)<\/h1>/'); + if ($this->fetch_header('https://inkscape.org/release/')) + return $this->parse('/\/release\/inkscape-([\d\.]+)/'); return false; } }