From 557ef8267401652838e6babea6aa4af5defee5e6 Mon Sep 17 00:00:00 2001 From: Joseph Date: Thu, 12 May 2022 21:02:03 +0100 Subject: [PATCH] [HaveIBeenPwnedBridge] Fix item URIs --- bridges/HaveIBeenPwnedBridge.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bridges/HaveIBeenPwnedBridge.php b/bridges/HaveIBeenPwnedBridge.php index 91ea43f2756..da1e3938bcc 100644 --- a/bridges/HaveIBeenPwnedBridge.php +++ b/bridges/HaveIBeenPwnedBridge.php @@ -38,8 +38,6 @@ public function collectData() { $data = json_decode(getContents(self::API_URI . '/breaches'), true); - $breaches = array(); - foreach($data as $breach) { $item = array(); @@ -48,7 +46,7 @@ public function collectData() { . $pwnCount . ' breached accounts'; $item['dateAdded'] = $breach['AddedDate']; $item['breachDate'] = $breach['BreachDate']; - $item['uri'] = self::URI . '/PwnedWebsites' . $breach['Name']; + $item['uri'] = self::URI . '/PwnedWebsites#' . $breach['Name']; $item['content'] = '

' . $breach['Description'] . '

'; $item['content'] .= '

' . $this->breachType($breach) . '

';