1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-03 15:17:33 +02:00

[HaveIBeenPwnedBridge] Fix item URIs (#2724)

This commit is contained in:
Joseph
2022-05-12 20:16:34 +00:00
committed by GitHub
parent e01f0bcaf2
commit 97b513823d

View File

@@ -38,8 +38,6 @@ class HaveIBeenPwnedBridge extends BridgeAbstract {
$data = json_decode(getContents(self::API_URI . '/breaches'), true); $data = json_decode(getContents(self::API_URI . '/breaches'), true);
$breaches = array();
foreach($data as $breach) { foreach($data as $breach) {
$item = array(); $item = array();
@@ -48,7 +46,7 @@ class HaveIBeenPwnedBridge extends BridgeAbstract {
. $pwnCount . ' breached accounts'; . $pwnCount . ' breached accounts';
$item['dateAdded'] = $breach['AddedDate']; $item['dateAdded'] = $breach['AddedDate'];
$item['breachDate'] = $breach['BreachDate']; $item['breachDate'] = $breach['BreachDate'];
$item['uri'] = self::URI . '/PwnedWebsites' . $breach['Name']; $item['uri'] = self::URI . '/PwnedWebsites#' . $breach['Name'];
$item['content'] = '<p>' . $breach['Description'] . '</p>'; $item['content'] = '<p>' . $breach['Description'] . '</p>';
$item['content'] .= '<p>' . $this->breachType($breach) . '</p>'; $item['content'] .= '<p>' . $this->breachType($breach) . '</p>';