XLSX: DataValidation - Handle double quotes in list

Data Validation List containing double quotes are not handled during
XLSX export

bug-document: forum-mso-de-54556.xls
Change-Id: Ib77d7030f6c2a75a48d3a3bbd00d1618ba84051c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198404
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 1c0df6304c57ae1896701e85fe77bfb9a9ba9f2b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199431
Tested-by: Jenkins
Reviewed-by: Karthik Godha <karthik.godha@collabora.com>
This commit is contained in:
Karthik Godha
2026-02-16 03:41:26 +01:00
parent fbc4e2db2a
commit d6956b843d
+6 -1
View File
@@ -1790,8 +1790,13 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uInt32 nScHandle ) :
}
else
sListBuf.append(aToken);
OUString sEscaped(aToken);
if (aToken.find('"') != std::u16string_view::npos)
sEscaped = sEscaped.replaceAll("\"", "\"\"");
mxString1->Append( aToken );
sFormulaBuf.append( aToken );
sFormulaBuf.append(sEscaped);
if (nStringIx<0)
break;
sal_Unicode cUnicodeChar = 0;