-
Home
-
Sucuri Security – Auditing, Malware Scanner and Security Hardening
-
1.9.7 (latest)
-
Code
-
Classes
- SucuriScanCSPHeaders
Total Complexity |
40 |
Dependencies |
1 |
Dependents |
2 |
Total lines |
263 |
Lines of code |
156 |
Logical lines of code |
67 |
Comment lines |
63 |
Methods |
9 |
Properties |
0 |
Methods 9
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
setCSPHeaders() |
A |
43 |
14 |
48 |
sanitizeSourceListDirective() |
S |
51 |
7 |
25 |
sanitizeDirectiveValue() |
S |
62 |
5 |
12 |
sanitizeSandboxTokens() |
S |
53 |
4 |
24 |
getValidDirectiveOrFalse() |
S |
50 |
2 |
32 |
sanitizeUpgradeInsecureRequests() |
S |
73 |
3 |
4 |
sanitizeReportUriOrTo() |
S |
73 |
3 |
4 |
sanitize_csp_directive() |
S |
79 |
1 |
3 |
isValidHostSource() |
S |
75 |
1 |
4 |