From 86f3de82c9928e456d4b76c96c0ef1492d43405f Mon Sep 17 00:00:00 2001 From: Florent VIOLLEAU Date: Wed, 8 Jul 2026 23:42:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(fix)=20Update=20SamMobileUpdateBri?= =?UTF-8?q?dge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bridges/SamMobileUpdateBridge.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bridges/SamMobileUpdateBridge.php b/bridges/SamMobileUpdateBridge.php index ea158db71e5..fc5ed411f76 100644 --- a/bridges/SamMobileUpdateBridge.php +++ b/bridges/SamMobileUpdateBridge.php @@ -5,7 +5,6 @@ class SamMobileUpdateBridge extends BridgeAbstract { const NAME = 'SamMobile updates'; - // pull info from this site const URI = 'https://www.sammobile.com/samsung/security/'; const DESCRIPTION = 'Fetches the latest security patches for Samsung devices'; const MAINTAINER = 'floviolleau'; @@ -37,7 +36,7 @@ public function collectData() foreach ($elementsDom as $elementDom) { $item = []; - $td = $elementDom->find('td'); + $td = array_map(fn($cell) => trim($cell->plaintext), $elementDom->find('td')); $title = 'Security patch: ' . $td[2] . ' - Android version: ' . $td[3] . ' - PDA: ' . $td[4]; $text = 'Model: ' . $td[0] . '
Country/Carrier: ' . $td[1] . '
Security patch: ' . $td[2] . '
OS version: Android ' . $td[3] . '
PDA: ' . $td[4]; @@ -45,7 +44,6 @@ public function collectData() $item['uri'] = $uri; $item['title'] = $title; $item['author'] = self::MAINTAINER; - $item['timestamp'] = (new DateTime($td[2]->innertext))->getTimestamp(); $item['content'] = $text; $item['uid'] = hash('sha256', $item['title']);