mirror of https://github.com/danoloan10/rss-bridge
[HaveIBeenPwnedBridge] Fix item URIs (#2724)
This commit is contained in:
parent
e01f0bcaf2
commit
97b513823d
|
@ -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>';
|
||||||
|
|
Loading…
Reference in New Issue