[Mattj & Florob] fix canonicalize function to prevent having twice xmlns in the attributes. Fixes #4396

This commit is contained in:
Yann Leboulanger 2009-10-01 19:13:52 +02:00
parent c5b60e8df5
commit 678e3807e9
1 changed files with 2 additions and 0 deletions

View File

@ -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) )