mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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 <grandmaster@al2klimov.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20200702200536.13389-1-grandmaster@al2klimov.de
This commit is contained in:
parent
5c2fb57af0
commit
8eda94bde4
2 changed files with 3 additions and 3 deletions
|
@ -2134,7 +2134,7 @@ char *fwnode_string(char *buf, char *end, struct fwnode_handle *fwnode,
|
|||
* [4] or [6] and is able to print port [p], flowinfo [f], scope [s]
|
||||
* - '[Ii][4S][hnbl]' IPv4 addresses in host, network, big or little endian order
|
||||
* - 'I[6S]c' for IPv6 addresses printed as specified by
|
||||
* http://tools.ietf.org/html/rfc5952
|
||||
* https://tools.ietf.org/html/rfc5952
|
||||
* - 'E[achnops]' For an escaped buffer, where rules are defined by combination
|
||||
* of the following flags (see string_escape_mem() for the
|
||||
* details):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue