]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - CREDITS
CREDITS: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Tue, 14 Jul 2020 17:55:28 +0000 (19:55 +0200)
committerJonathan Corbet <corbet@lwn.net>
Thu, 23 Jul 2020 20:53:58 +0000 (14:53 -0600)
commit76bd58f3c867f5a6b20d2e30c1c4bb4f9ff0e275
treee71844a1ac622204017321ef192028fdb845b40f
parent5b5bbb8cc51be3c70993ddabfd216c5c769e8585
CREDITS: 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 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>
Link: https://lore.kernel.org/r/20200714175528.46712-1-grandmaster@al2klimov.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
CREDITS