** Attachment added: lshw patch
http://launchpadlibrarian.net/15480640/lshw.patch
** Changed in: lshw (Ubuntu)
Sourcepackagename: None = lshw
** Description changed:
According to the XML 1.0 standard, these are the characters allowed
between tags:
Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] |
[#xE000-#xFFFD] | [#x1-#x10]
For reference purposes, here is the direct link to the W3 standard:
http://www.w3.org/TR/2006/REC-xml-20060816/#charsets
- The problem is that the lshw escape function only escapes special
- characters, such as , and . However, it lets characters
- outside the allowed set to result in the output. For example, here is
- output I have encountered recently from the serial number of a CDROM
- driver (where ^@ is a NUL character):
+ The problem is that the lshw escape function only generates entities
+ from special characters, such as , and . However, it lets
+ characters outside the allowed set to result in the output. For example,
+ here is output I have encountered recently from the serial number of a
+ CDROM device (where ^@ is a NUL character):
serial[EMAIL PROTECTED]@[EMAIL PROTECTED] DVD RW AD-7200S 1.04
Dec21,2007/serial
I have attached a patch which should solve the problem by removing
invalid characters altogether.
--
lshw -xml reporting invalid xml
https://bugs.launchpad.net/bugs/241675
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs