AV-98-fork

A fork of https://tildegit.org/solderpunk/AV-98
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 74d851147449c9369a6ae73e5319582c8a9269fa
parent 42e81ee859eb0edb93248758a0d5d0260f8f79a1
Author: Solderpunk <solderpunk@sdf.org>
Date:   Tue, 12 May 2020 22:00:17 +0200

Properly escape query text before putting it into a URL.

Diffstat:
Mav98.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/av98.py b/av98.py @@ -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=""):