[Mattj & Florob] fix canonicalize function to prevent having twice xmlns in the attributes. Fixes #4396
This commit is contained in:
parent
c5b60e8df5
commit
678e3807e9
|
@ -29,6 +29,8 @@ def c14n(node):
|
|||
|
||||
sorted_attrs = sorted(node.attrs.keys())
|
||||
for key in sorted_attrs:
|
||||
if key == 'xmlns':
|
||||
continue
|
||||
val = ustr(node.attrs[key])
|
||||
# like XMLescape() but with whitespace and without >
|
||||
s = s + ' %s="%s"' % ( key, normalise_attr(val) )
|
||||
|
|
Loading…
Reference in New Issue