eddb: Ensure system_name is quoted for URL

This commit is contained in:
Athanasius committed 2020-07-01 15:51:14 +01:00
1 parent 1a11202aea
commit 2df8610e42
1 file changed
+2 -1
+2 -1
View File
@@ -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):