import: turn off weird protocols in curl
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Aug 2021 16:12:56 +0000 (18:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Aug 2021 19:56:00 +0000 (21:56 +0200)
commit55b90ee00b78a449c8f187a5e8141f8ccb100bf4
tree92116f11176565cc595f747a50aa27b7b85ccd9d
parentceea13e20fd6258dca06fc0c9c227d30f568bec2
import: turn off weird protocols in curl

Let's lock things down a bit and now allow curl's weirder protocols to
be used with our use. i.e. stick to http:// + https:// + file:// and
turn everything else off. (Gopher!)

This is cde that interfaces with the network after all, and we better
shouldn't support protocols needlessly that are much less tested.

(Given that HTTP redirects (and other redirects) exist, this should give
us a security benefit, since we will then be sure that noone can forward
us to a weird protocol, which we never tested, and other people test
neither)
src/import/curl-util.c