Split question mark url params in url_to_path.

This commit is contained in:
voussoir 2022-01-14 23:43:36 -08:00
parent 7a7c179997
commit a308c10767
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -467,6 +467,7 @@ def path_to_url(path):
def url_to_path(path): def url_to_path(path):
path = urllib.parse.unquote(path) path = urllib.parse.unquote(path)
path = path.strip('/') path = path.strip('/')
path = path.split('?')[0]
return pathclass.Path(path) return pathclass.Path(path)
def zip_directory(path): def zip_directory(path):