Skip to content

Commit 07ba4c0

Browse files
committed
Skip any url query segment that doesn't contain an "=", so
that a query like "?&ipr_id=657" can be parsed. - Legacy-Id: 415
1 parent bc1981a commit 07ba4c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_patterns(module):
5757
def split_url(url):
5858
if "?" in url:
5959
url, args = url.split("?", 1)
60-
args = dict([ arg.split("=", 1) for arg in args.split("&") ])
60+
args = dict([ arg.split("=", 1) for arg in args.split("&") if "=" in arg ])
6161
else:
6262
args = {}
6363
return url, args

0 commit comments

Comments
 (0)