AdobeFlashPlayer: Query NPAPI version

This commit is contained in:
Steffen Lange 2020-03-31 14:19:19 +02:00
parent 534c4142d6
commit 86eb5b78da

View file

@ -5,10 +5,9 @@ class AdobeFlashPlayer extends PatchBase {
parent::__construct('Adobe', 'Flash Player', 'https://get.adobe.com/flashplayer/'); parent::__construct('Adobe', 'Flash Player', 'https://get.adobe.com/flashplayer/');
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://get.adobe.com/flashplayer/webservices/json/?platform_type=Windows&platform_dist=XP&platform_arch=x86-32&platform_misc=&exclude_version=10&browser_arch=&browser_type=&browser_vers=&browser_dist=&eventname=flashplayerotherversions', true)) { // https://get.adobe.com/flashplayer/webservices/json/?platform_type=Windows&platform_dist=XP&platform_arch=x86-32&platform_misc=&exclude_version=10&browser_arch=&browser_type=&browser_vers=&browser_dist=&eventname=flashplayerotherversions
$this->array_extract('flashplayerax'); if ($this->fetch('https://get.adobe.com/flashplayer/webservices/json/', true))
return $this->parse_json('Version'); return $this->parse_json('Version');
}
return false; return false;
} }
} }