Menu

#243 Space around equal sign (with fix)

Development Strand
open
nobody
None
5
2016-01-03
2016-01-03
PavelD
No

There is wrong XML parsing of attribute if between attribute and equal sign (=) is space or new line => there will be not correct detection of attribute1 from example:

<Node attribute1 = "value" namespace:attribute2='value' attribute3=/>

Simple change line 103 in the xml.php will fix this issue:
GESHI_SEARCH => '([a-z_:][\w\-\.:]*)(\s*=)', instead of GESHI_SEARCH => '([a-z_:][\w\-\.:]*)(=)',

Found in version: 1.0.8.11.
More info about white space is available here: http://www.w3.org/TR/2006/REC-xml11-20060816/#sec-white-space

Discussion


Log in to post a comment.

MongoDB Logo MongoDB