Commit f60d53f
committed
Make email obfuscation CSP friendly
Obfuscation makes email addresses harder to harvest by inserting
into them HTML elements which are supposed to be invisible in the
rendered HTML (display: none). The style is specified inline, and
inline styles may be prohibited by content-security-policy HTTP
header, breaking the markup if generated html is served from the
server which sets such header. So move the style to CSS and refer
to it via `class` in HTML code to fix this.1 parent 5da7df8 commit f60d53f
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
1530 | 1534 | | |
1531 | 1535 | | |
1532 | 1536 | | |
| |||
0 commit comments