Split question mark url params in url_to_path.
This commit is contained in:
parent
7a7c179997
commit
a308c10767
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue