diff options
author | Alexander A. Klimov <[email protected]> | 2020-07-02 22:05:36 +0200 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2020-07-03 14:07:00 +0200 |
commit | 8eda94bde4ff004a942ed95e6348de711b0e6da9 (patch) | |
tree | 29eb642aec4c913e37b97feaf0b03330671ac68a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5c2fb57af0f42550eb718a3b0b445c81ec923895 (diff) |
Replace HTTP links with HTTPS ones: vsprintf
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 <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions