Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

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

v2.1
open
nobody
wstools (22)
5
2011-03-31
2011-03-31
Yuri Zolot'ko
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