From 86eb5b78da3e82a2e367fc481d2ded1b8f1f3e8d Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Tue, 31 Mar 2020 14:19:19 +0200 Subject: [PATCH] AdobeFlashPlayer: Query NPAPI version --- modules/AdobeFlashPlayer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/AdobeFlashPlayer.php b/modules/AdobeFlashPlayer.php index 29c421a..e668d97 100644 --- a/modules/AdobeFlashPlayer.php +++ b/modules/AdobeFlashPlayer.php @@ -5,10 +5,9 @@ class AdobeFlashPlayer extends PatchBase { parent::__construct('Adobe', 'Flash Player', 'https://get.adobe.com/flashplayer/'); } 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)) { - $this->array_extract('flashplayerax'); + // 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 + if ($this->fetch('https://get.adobe.com/flashplayer/webservices/json/', true)) return $this->parse_json('Version'); - } return false; } }