Using urlencode "doseq" option for url args

main
Ben Busby 2020-04-29 20:31:03 -06:00
parent 3e404cb524
commit 39c475af21
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ class Filter:
# Remove original link query and replace with filtered args
query_link = query_link.replace(parsed_link.query, '')
if len(safe_args) > 1:
query_link = query_link + urlparse.urlencode(safe_args)
if len(safe_args) > 0:
query_link = query_link + urlparse.urlencode(safe_args, doseq=True)
else:
query_link = query_link.replace('?', '')