[ekhtml-devel] [ ekhtml-Bugs-900755 ] unquoted attribute value with comma handled poorly
Brought to you by:
jick
|
From: SourceForge.net <no...@so...> - 2004-02-19 23:37:10
|
Bugs item #900755, was opened at 2004-02-19 18:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=500165&aid=900755&group_id=62314 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Josh (jmmankoff) Assigned to: Nobody/Anonymous (nobody) Summary: unquoted attribute value with comma handled poorly Initial Comment: In ekhtml_mktables.c, the method that specifies which characters are valid attribute values (valid_attrvalue) does not include the comma (,), the semicolon (;), or the vertical bar (|). If any of these characters shows up in an unquoted attribute value, then the rest of the element is not parsed. An example that seems to show up pretty commonly is: <AREA SHAPE=rectangle COORDS=40,20,30,40 HREF="http://..."/>. In this case, the HREF is never found. As another example, if an unquoted HREF contains any of these characters, than the value will only include characters up to, but not including, the first offending character. I propose adding these characters to the list of characters in valid_attrvalue. Here is the diff of ekhtml_mktables.c for this change: 72c72,73 < in == '$' || in == '_') --- > in == '$' || in == '_' || in == ',' || in == ';' || > in == '|') Attached is the modified file ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=500165&aid=900755&group_id=62314 |