diff options
| author | Alexander A. Klimov <[email protected]> | 2020-07-13 19:06:28 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2020-07-15 09:45:06 +0000 |
| commit | 19206a1edc518e6f39ae2307598afe20ae74ae6b (patch) | |
| tree | 878af01691c5e1f2aaa1dc798a738ef90d014f3a /lib/test-string_helpers.c | |
| parent | platform/x86: thinkpad_acpi: not loading brightness_init when _BCL invalid (diff) | |
| download | kernel-19206a1edc518e6f39ae2307598afe20ae74ae6b.tar.gz kernel-19206a1edc518e6f39ae2307598afe20ae74ae6b.zip | |
platform/x86: thinkpad_acpi: 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: Andy Shevchenko <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
