Add Tomcat 9
This commit is contained in:
parent
f974e40dfb
commit
21617be045
1 changed files with 15 additions and 0 deletions
15
modules/Tomcat9.php
Normal file
15
modules/Tomcat9.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class Tomcat9 extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Apache Foundation', 'Tomcat', 'https://tomcat.apache.org/download-90.cgi');
|
||||||
|
$this->patch->setBranch('9');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://tomcat.apache.org/download-90.cgi'))
|
||||||
|
return $this->parse('/id="([\d\.]+)"/');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue