From 39c475af219c98a85bcfcf0933bcd89fe9227cb1 Mon Sep 17 00:00:00 2001 From: Ben Busby <33362396+benbusby@users.noreply.github.com> Date: Wed, 29 Apr 2020 20:31:03 -0600 Subject: [PATCH] Using urlencode "doseq" option for url args --- app/filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/filter.py b/app/filter.py index 6bc5e81..efa786f 100644 --- a/app/filter.py +++ b/app/filter.py @@ -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('?', '')