From 2df8610e422f84ea7077b8d9b47f579de70a1ada Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 27 Jun 2020 09:52:01 +0100 Subject: [PATCH] eddb: Ensure system_name is quoted for URL --- plugins/eddb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index 82a294c2..9a11b0c2 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -8,6 +8,7 @@ import csv import os from os.path import join import sys +import urllib.parse from config import config @@ -27,7 +28,7 @@ with open(join(config.respath, 'stations.p'), 'rb') as h: # Main window clicks def system_url(system_name): - return 'https://eddb.io/system/name/%s' % system_name + return 'https://eddb.io/system/name/%s' % urllib.parse.quote(system_name) def station_url(system_name, station_name):