a79561be89
ok merdely@
13 lines
610 B
Plaintext
13 lines
610 B
Plaintext
$OpenBSD: patch-util_XML_cc,v 1.1 2007/12/17 19:55:48 okan Exp $
|
|
--- util/XML.cc.orig Mon Dec 10 22:26:55 2007
|
|
+++ util/XML.cc Mon Dec 10 22:27:07 2007
|
|
@@ -49,7 +49,7 @@ void XML::init() {
|
|
// Only initialise scanners once
|
|
if (!initialised) {
|
|
// <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
- xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*");
|
|
+ xmlScan.addPattern(XmlDecl, "<\\?xml[^\\?].*\\?>[[:space:]]*");
|
|
xmlScan.addPattern(XmlCommentBegin, "<!--");
|
|
xmlScan.addPattern(XmlBegin, "<[a-zA-Z0-9_-]+"
|
|
"([[:space:]]+[a-zA-Z_0-9-]+=(([/a-zA-Z_0-9,.]+)|(\"[^\"]*\")|('[^']*')))"
|