[09/10] importer: Ensure that we only use HTTPS URLs for Geofeeds
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
src/scripts/location-importer.in | 5 +++++
1 file changed, 5 insertions(+)
@@ -894,6 +894,11 @@ class CLI(object):
# Update any geofeed information
geofeed = inetnum.get("geofeed", None)
+ # Make sure that this is a HTTPS URL
+ if geofeed and not geofeed.startswith("https://"):
+ log.warning("Geofeed URL is not using HTTPS: %s" % geofeed)
+ geofeed = None
+
# Store/update any geofeeds
if geofeed:
self.db.execute("""