OwnCloud: Website changes

This commit is contained in:
Steffen Lange 2020-10-07 20:56:15 +02:00
parent c361b2af8b
commit 2b58cd4085

View file

@ -2,11 +2,11 @@
class OwnCloud extends PatchBase {
function __construct() {
parent::__construct('ownCloud GmbH', 'ownCloud', 'https://owncloud.org/download/');
parent::__construct('ownCloud GmbH', 'ownCloud', 'https://owncloud.com/download-server/');
}
function check() : bool {
if ($this->fetch('https://owncloud.org/download/'))
return $this->parse('/<td>Production<\/td>[\s]*<td>([\d\.]+)<\/td>/');
if ($this->fetch('https://owncloud.com/download-server/'))
return $this->parse('/Version: <strong>ownCloud Server ([\d\.]+)<\/strong>/');
return false;
}
}