diff options
author | Frank Schönheit <fs@openoffice.org> | 2010-01-04 13:58:14 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2010-01-04 13:58:14 +0000 |
commit | 64335969f5c70b1ae49f6d7da61e6478baed3ed4 (patch) | |
tree | 797bbdccc6d20c511f63f9c5463d52e50ecfacbf /dbaccess/source/filter/xml | |
parent | 730b75df62443c6c17646d6c82a9b5b1f389c71c (diff) |
#i108019#
Diffstat (limited to 'dbaccess/source/filter/xml')
-rw-r--r-- | dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx b/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx index 35b4b84e8b90..1f77f02b70f8 100644 --- a/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx +++ b/dbaccess/source/filter/xml/xmlFileBasedDatabase.cxx @@ -102,7 +102,11 @@ OXMLFileBasedDatabase::OXMLFileBasedDatabase( ODBFilter& rImport, rtl::OUString sFileName = aPathOptions.SubstituteVariable(sValue); if ( sValue == sFileName ) { - sLocation = ::svt::OFileNotation(rImport.GetAbsoluteReference(sValue)).get( ::svt::OFileNotation::N_SYSTEM ); + const sal_Int32 nLength = sFileName.getLength(); + if ( ( nLength > 0 ) && ( sFileName.getStr()[ nLength - 1 ] == '/' ) ) + sFileName = sFileName.copy( 0, nLength - 1 ); + + sLocation = ::svt::OFileNotation( rImport.GetAbsoluteReference( sFileName ) ).get( ::svt::OFileNotation::N_SYSTEM ); } if ( sLocation.getLength() == 0 ) |