Closed ahonor closed 12 years ago
This is a KNOWN issue with the regex due to special character being unable to be escaped through XML validators see issue #68 ); even when properly escaped, the 'special characters' still throw errors. As long as they do NOT go through a XML validator, they are fine from what I am seeing regardless of not being escaped or being escaped. Otherwise we have to come up with an alternative method for importing/outporting filters
oops sorry... meant 106
what specifically is not being encoded correctly? I created a filter containing XML-special characters, including these: <>'"&.
the xml output was properly encoded.
running "xmlstarlet val output.xml" produces: "output.xml - valid"
I think you guys are going a different route at this point so it doesn't matter at this point.
Filters contain regular expression strings which need to be encoded to ensure valid representation formatting.
Eg, Here's the output of the /api/filter/list endpoint. Notice the expressions are not encoded and can create invalid XML (similar issues will be true for JSON):