#297 '\n' in attribute value is not properly encoded

v2.1
open
nobody
wstools (22)
5
2011-03-31
2011-03-31
No

When '\n' and some other symbols are not properly encoded. For example '\n' becomes "&#xA" while it should become "&xA;". This is due to misprint at c14n.py at line 286:
s = string.replace(s, '\011', '&#x9')
s = string.replace(s, '\012', '&#xA')
s = string.replace(s, '\015', '&#xD')
This should be:
s = string.replace(s, '\011', '	')
s = string.replace(s, '\012', '
')
s = string.replace(s, '\015', '
')

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks