[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -38,8 +38,6 @@ class HaveIBeenPwnedBridge extends BridgeAbstract {
$data = json_decode(getContents(self::API_URI . '/breaches'), true);
$breaches = array();
foreach($data as $breach) {
$item = array();
@ -48,7 +46,7 @@ class HaveIBeenPwnedBridge extends BridgeAbstract {
. $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>';