Properly escape query text before putting it into a URL.

This commit is contained in:
Solderpunk 2020-05-12 22:00:17 +02:00
parent 42e81ee859
commit 74d8511474
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class GeminiItem():
return GeminiItem(self._derive_url(new_path))
def query(self, query):
query = urllib.parse.quote(query)
return GeminiItem(self._derive_url(query=query))
def _derive_url(self, path="", query=""):