rjatkins / owaspantisamy

Automatically exported from code.google.com/p/owaspantisamy
0 stars 0 forks source link

CSS font-family Property Parsing Error #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Scan an inline stylesheet "font-family: Geneva, Arial, Sans-serif"

What is the expected output? What do you see instead?
This should be valid by the regular expression. Instead, validation fails.

This appears to be caused by parsing of the LexicalUnit for the font family
name.

Originally reported by Chase Seibert.

Original issue reported on code.google.com by li.jaso...@gmail.com on 27 Oct 2008 at 5:41

GoogleCodeExporter commented 9 years ago
Fixed in SVN revision 79.

Added proper handling of comma in parser to facilitate listed values in CSS 
properties.

Files modified:
CssValidator.java (added comma handling)
AntiSamyTest.java (added test case to ensure proper regression in the future of 
font
family properties)

Original comment by li.jaso...@gmail.com on 27 Oct 2008 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by arshan.d...@gmail.com on 26 Nov 2008 at 12:21