Skip to content

Commit 5d117e9

Browse files
authored
Merge pull request #1397 from mozilla/PDL
PDL
2 parents b352eaf + 753f225 commit 5d117e9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

controllers/hibp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function notify (req, res) {
6767
}
6868
}
6969

70-
if (breachAlert.IsSpamList || breachAlert.Domain === "" || breachAlert.IsFabricated || !breachAlert.IsVerified) {
70+
if (breachAlert.IsSpamList || breachAlert.IsFabricated || !breachAlert.IsVerified) {
7171
log.info(`${breachAlert.Name} is fabricated, a spam list, not associated with a website, or unverified. \n Breach Alert not sent.`);
7272
return res.status(200).json(
7373
{info: "Breach loaded into database. Subscribers not notified."}

hibp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const HIBP = {
145145
!breach.IsSpamList &&
146146
!breach.IsFabricated &&
147147
breach.IsVerified &&
148-
breach.Domain !== ""
148+
!(breach.Domain === "" && breach.Name !== "PDL")
149149
);
150150
},
151151

template-helpers/breach-detail.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function getVars(args) {
1515
// How to dynamically detect Data Aggregator breaches?
1616

1717
function getBreachCategory(breach) {
18-
if (["Exactis", "Apollo", "YouveBeenScraped", "ElasticsearchSalesLeads", "Estonia", "MasterDeeds"].includes(breach.Name)) {
18+
if (["Exactis", "Apollo", "YouveBeenScraped", "ElasticsearchSalesLeads", "Estonia", "MasterDeeds", "PDL"].includes(breach.Name)) {
1919
return "data-aggregator-breach";
2020
}
2121
if (!breach.IsVerified) {

views/breach-detail.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="breach-detail-logo-wrapper">
77
<img class="breach-detail-logo breach-logo" alt="{{ breach.Name }} logo" src="/img/logos/{{ breach.LogoPath }}" />
88
</div>
9-
<h2 class="headline breach-detail-headline">{{ breach.Title }}</h2>
9+
<h2 class="headline breach-detail-headline txt-cntr mw-8">{{ breach.Title }}</h2>
1010
{{#if breach.Domain}}
1111
<a class="blue-link send-ga-ping" href="https://www.{{ breach.Domain }}" rel="nofollow noopener noreferrer" data-event-label="{{ breach.Domain }}" data-event-action="Engage" data-event-category="Breach Detail: Website URL Link" target="_blank">www.{{ breach.Domain }}</a>
1212
{{/if}}

0 commit comments

Comments
 (0)