diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2020-07-06 21:03:24 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-09-03 09:51:00 -0700 |
commit | 1e44e6e82e7b4d2bae70a8a0b68f7d4f213b0e5f (patch) | |
tree | 9f6472829ae7d441784e9dfe074b1b180c363725 /lib/parser.c | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) |
Replace HTTP links with HTTPS ones: LKMM
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 both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions