Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counting fix in the insecure requests opp #2647

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion www/experiments/insecure-requests.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
array_push($insecureRequests, $request['full_url']);
}
}
$insecureRequests = array_unique($insecureRequests);

if (count($insecureRequests) > 0) {
$opp = [
"title" => count($insecureRequests) . " resource" . (count($insecureRequests) > 1 ? "s are" : " is") . " not being loaded over a secure connection.",
"desc" => "Loading requests over HTTPS necessary for ensuring data integrity, protecting users personal information, providing core critical security, and providing access to many new browser features.",
"examples" => array_unique($insecureRequests),
"examples" => $insecureRequests,
"good" => false
];
} else {
Expand Down