Skip to content
Snippets Groups Projects
Commit 678e3807 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Mattj & Florob] fix canonicalize function to prevent having twice xmlns in...

[Mattj & Florob] fix canonicalize function to prevent having twice xmlns in the attributes. Fixes #4396
parent c5b60e8d
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,8 @@ def c14n(node): ...@@ -29,6 +29,8 @@ def c14n(node):
sorted_attrs = sorted(node.attrs.keys()) sorted_attrs = sorted(node.attrs.keys())
for key in sorted_attrs: for key in sorted_attrs:
if key == 'xmlns':
continue
val = ustr(node.attrs[key]) val = ustr(node.attrs[key])
# like XMLescape() but with whitespace and without > # like XMLescape() but with whitespace and without >
s = s + ' %s="%s"' % ( key, normalise_attr(val) ) s = s + ' %s="%s"' % ( key, normalise_attr(val) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment