diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-03 22:15:57 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-03 22:53:37 +0200 |
commit | 5fccea4add2eb5b838733becdb4dc3120151a82f (patch) | |
tree | 5d10c4f204d174fff45e89bdb2e88e346c9b58f2 /unoxml | |
parent | cf176b444aa5d2b3fbb352fb723c0f6322ea1379 (diff) |
unordf: replace external entity disabling handler code ...
... with a configure check for the fixed raptor library.
Change-Id: I495d5d28e9a4e7b6234f8f9d17c2bda36154316d
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 733b3132e0c4..be3e81f9dc12 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -32,7 +32,6 @@ #include <boost/bind.hpp> #include <libxslt/security.h> -#include <libxml/parser.h> #include <redland.h> @@ -872,11 +871,6 @@ bool formatNeedsBaseURI(::sal_Int16 i_Format) return true; } -xmlParserInputPtr myExtEntityLoader( const char* /*URL*/, const char* /*ID*/, xmlParserCtxtPtr /*context*/) -{ - return NULL; -} - //void SAL_CALL uno::Reference<rdf::XNamedGraph> SAL_CALL librdf_Repository::importGraph(::sal_Int16 i_Format, @@ -954,9 +948,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, "librdf_new_parser failed", *this); } - xmlExternalEntityLoader oldExtEntityLoader = xmlGetExternalEntityLoader(); - xmlSetExternalEntityLoader( myExtEntityLoader); - uno::Sequence<sal_Int8> buf; uno::Reference<io::XSeekable> xSeekable(i_xInStream, uno::UNO_QUERY); // UGLY: if only that redland junk could read streams... @@ -982,7 +973,6 @@ throw (uno::RuntimeException, lang::IllegalArgumentException, "librdf_model_context_add_statements failed", *this); } - xmlSetExternalEntityLoader( oldExtEntityLoader); return getGraph(i_xGraphName); } |