From fe6f85305eed27a397bc37d54a5eb29a9d9061ff Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 29 Mar 2011 18:59:05 +0300 Subject: [PATCH] Don't pass potentially bogus file: URIs to libxml2 libxml2 doesn't understand our syntax for file: URIs in the case of UNC paths. Fixes fdo#33970. Picked from OOo's fix for their issue i#109096. Signed-off-by: David Tardon --- desktop/source/deployment/registry/dp_backenddb.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx index a93bc0b45093..84cfb60760dd 100644 --- a/desktop/source/deployment/registry/dp_backenddb.cxx +++ b/desktop/source/deployment/registry/dp_backenddb.cxx @@ -92,7 +92,10 @@ css::uno::Reference BackendDb::getDocument() ::osl::File::RC err = ::osl::DirectoryItem::get(m_urlDb, item); if (err == ::osl::File::E_None) { - m_doc = xDocBuilder->parseURI(m_urlDb); + ::ucbhelper::Content descContent( + m_urlDb, css::uno::Reference()); + Reference xIn = descContent.openStream(); + m_doc = xDocBuilder->parse(xIn); } else if (err == ::osl::File::E_NOENT) {