diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2019-11-07 10:21:12 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-11-07 13:04:23 +0100 |
commit | 47708d533e1325032df55eb667ef0c47fa05e7e5 (patch) | |
tree | c1976f2ed9f7768c62e6738fdeeecbdea1decef2 /sw/source/uibase/dbui | |
parent | 1789ccc861e78a7db87cf8a2acd10bbc19d4d650 (diff) |
tdf#109219 Allow files with spaces in name as MM data source
The filter needs to be the unescaped file name.
Change-Id: I2b5337c184c1ce75595e129d5a87ed4d189ec1e7
Reviewed-on: https://gerrit.libreoffice.org/82201
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sw/source/uibase/dbui')
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 64ec3bd4e391..c8e3554d9fb9 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -2721,7 +2721,7 @@ OUString LoadAndRegisterDataSource_Impl(DBConnURIType type, const uno::Reference case DBConnURIType::FLAT: case DBConnURIType::DBASE: //set the filter to the file name without extension - aFilters[0] = rURL.getBase(); + aFilters[0] = rURL.getBase(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::Unambiguous); aTableFilterAny <<= aFilters; break; case DBConnURIType::MSJET: |