You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Khaled Noaman <kn...@ca.ibm.com> on 2003/03/12 16:18:37 UTC

Patch for bugzilla bug 17412

Hi,

Please find enclosed a patch for bug 17412.

Regards,
Khaled

---
D:\cvswork\xml-xerces\java\src\org\apache\xerces\impl\xpath\regex\RegexParser.java
2003-03-07 16:37:07.000000000 -0500
+++ RegexParser.java 2003-03-07 16:46:02.000000000 -0500
@@ -773,6 +773,8 @@
             break;

           case T_CHAR:
+            if (this.chardata == ']' || this.chardata == '{' ||
this.chardata == '}')
+                throw this.ex("parser.atom.4", this.offset-1);
             tok = Token.createChar(this.chardata);
             int high = this.chardata;
             this.next();



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org