Commit c5437338 authored by Alexander A. Klimov's avatar Alexander A. Klimov Committed by Pavel Machek
Browse files

leds: 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: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
Acked-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 93690cdf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,4 +102,4 @@ led-controller@38 {
};

For more product information please see the links below:
http://www.ti.com/product/LM3532
https://www.ti.com/product/LM3532
+2 −2
Original line number Diff line number Diff line
@@ -47,5 +47,5 @@ led-controller@64 {
}

For more product information please see the links below:
http://www.ti.com/product/LM36010
http://www.ti.com/product/LM36011
https://www.ti.com/product/LM36010
https://www.ti.com/product/LM36011
+1 −1
Original line number Diff line number Diff line
@@ -82,4 +82,4 @@ lm36274@11 {
};

For more product information please see the link below:
http://www.ti.com/lit/ds/symlink/lm36274.pdf
https://www.ti.com/lit/ds/symlink/lm36274.pdf
+1 −1
Original line number Diff line number Diff line
@@ -62,4 +62,4 @@ led-controller@36 {
}

For more product information please see the link below:
http://www.ti.com/lit/ds/snvsa29/snvsa29.pdf
https://www.ti.com/lit/ds/snvsa29/snvsa29.pdf
+1 −1
Original line number Diff line number Diff line
@@ -70,4 +70,4 @@ led-controller@36 {
}

For more product information please see the link below:
http://www.ti.com/lit/ds/symlink/lm3697.pdf
https://www.ti.com/lit/ds/symlink/lm3697.pdf
Loading