summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-04-25 16:17:53 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-04-25 16:17:53 +0000
commit968d6439e6c3aeb98acae4e545c6c39403320a4b (patch)
treeb2bb1243efb4d257297a6fac37487cf64e4afd76 /xmllint.c
parent8492ba1c0b4556aab9baffaa5046fdbc81196501 (diff)
downloadlibxml2-968d6439e6c3aeb98acae4e545c6c39403320a4b.tar.gz
applied patch from Gary Coady to really make sure xmllint --nonet would
* xmllint.c: applied patch from Gary Coady to really make sure xmllint --nonet would not reach the network, should fix #337483. Daniel
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index 06690e48..79025f13 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -3164,6 +3164,7 @@ main(int argc, char **argv) {
} else if ((!strcmp(argv[i], "-nonet")) ||
(!strcmp(argv[i], "--nonet"))) {
options |= XML_PARSE_NONET;
+ xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader);
} else if ((!strcmp(argv[i], "-nocompact")) ||
(!strcmp(argv[i], "--nocompact"))) {
options &= ~XML_PARSE_COMPACT;