Skip to content

Commit

Permalink
[HaveIBeenPwnedBridge] Fix item URIs (#2724)
Browse files Browse the repository at this point in the history
  • Loading branch information
VerifiedJoseph authored May 12, 2022
1 parent e01f0bc commit 97b5138
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bridges/HaveIBeenPwnedBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public function collectData() {

$data = json_decode(getContents(self::API_URI . '/breaches'), true);

$breaches = array();

foreach($data as $breach) {
$item = array();

Expand All @@ -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'] = '<p>' . $breach['Description'] . '</p>';
$item['content'] .= '<p>' . $this->breachType($breach) . '</p>';
Expand Down

0 comments on commit 97b5138

Please sign in to comment.