diff options
| author | Alexander A. Klimov <[email protected]> | 2020-07-19 12:40:41 +0200 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2020-08-14 18:06:36 +0300 |
| commit | 5b525ce88af90c6d986b25c21a868c0f9c4cc021 (patch) | |
| tree | a9cb28f4786673fba449e40ba3089f86d841c2ba /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 18c25b4019caa94deee67e839aea6b7b626e70d5 (diff) | |
ath5k: Replace HTTP links with HTTPS ones
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.
Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.
Signed-off-by: Alexander A. Klimov <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions