-
Home
-
Sucuri Security – Auditing, Malware Scanner and Security Hardening
-
1.9.9 (latest)
-
Code
-
Classes
- SucuriScanCSPHeaders
Total Complexity |
47 |
Dependencies |
1 |
Dependents |
1 |
Total lines |
317 |
Lines of code |
177 |
Logical lines of code |
81 |
Comment lines |
82 |
Methods |
10 |
Properties |
0 |
Methods 10
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
setCSPHeaders() |
A |
43 |
13 |
48 |
collectDirectiveValue() |
A |
55 |
9 |
18 |
sanitizeSourceListDirective() |
S |
51 |
7 |
25 |
sanitizeDirectiveValue() |
S |
62 |
5 |
12 |
sanitizeSandboxTokens() |
S |
52 |
4 |
24 |
getValidDirectiveOrFalse() |
S |
50 |
2 |
32 |
sanitizeReportUriOrTo() |
S |
68 |
3 |
7 |
sanitizeUpgradeInsecureRequests() |
S |
74 |
2 |
4 |
sanitize_csp_directive() |
S |
78 |
1 |
3 |
isValidHostSource() |
S |
75 |
1 |
4 |