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 <dtardon@redhat.com>
This commit is contained in:
parent
0a60f6ed77
commit
fe6f85305e
1 changed files with 4 additions and 1 deletions
|
@ -92,7 +92,10 @@ css::uno::Reference<css::xml::dom::XDocument> 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<css::ucb::XCommandEnvironment>());
|
||||
Reference<css::io::XInputStream> xIn = descContent.openStream();
|
||||
m_doc = xDocBuilder->parse(xIn);
|
||||
}
|
||||
else if (err == ::osl::File::E_NOENT)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue