1
Vote

BlogMLWriterBase.SgmlUtil.GetAttributeValues does not handle images with single quotes in file name

description

The regex returned by CreateAttributeRegex is not correct. For example, this is a valid attribute:
 
<img src="Phil's cool image.jpg" />  
However, the GetAttributeValues returns that as just "Phil" because it ends the attr value on the single quote, even though the double quote opened it. See http://haacked.com/archive/2004/10/25/UsingRegularExpressionsToMatchHTML.aspx

comments