Skip to content

Commit

Permalink
lib: Document namespace separator effect right in header <expat.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Mar 4, 2022
1 parent e0f852d commit 5dd5218
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions expat/lib/expat.h
Expand Up @@ -239,6 +239,11 @@ XML_ParserCreate(const XML_Char *encoding);
and the local part will be concatenated without any separator.
It is a programming error to use the separator '\0' with namespace
triplets (see XML_SetReturnNSTriplet).
If a namespace separator is chosen that can be part of a URI or
part of an XML name, splitting an expanded name back into its
1, 2 or 3 original parts on application level in the element handler
may end up vulnerable, so these are advised against; sane choices for
a namespace separator are e.g. '\n' (line feed) and '|' (pipe).
*/
XMLPARSEAPI(XML_Parser)
XML_ParserCreateNS(const XML_Char *encoding, XML_Char namespaceSeparator);
Expand Down

0 comments on commit 5dd5218

Please sign in to comment.