We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 568be58 + 7a55ebf commit 33f8309Copy full SHA for 33f8309
djangosaml2/utils.py
@@ -51,7 +51,7 @@ def get_location(http_info):
51
def get_hidden_form_inputs(html):
52
""" Extracts name/value pairs from hidden input tags in an html form."""
53
pairs = dict()
54
- tree = ElementTree.fromstring(html, forbid_dtd=True)
+ tree = ElementTree.fromstring(html.replace('&', '&'), forbid_dtd=True)
55
# python 2.6 doesn't have iter
56
if hasattr(tree, 'iter'):
57
node_iter = tree.iter()
0 commit comments