sc/source/filter/excel/xeescher.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 30a127e54390aeaad12f51eaa6323863fa04b3b3 Author: Karthik Godha <[email protected]> AuthorDate: Thu Feb 19 17:49:37 2026 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Fri Feb 20 12:05:42 2026 +0100 XLSX: Invalid cell link in Form Controls Cell links of Form Controls contains tab names, they should be checked for quotes. Also escape characters are not escaped. bug-document: forum-mso-en4-356971.xls Change-Id: I6ca8abed209171c7e78a99a27edaee05d0f221b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199719 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index d247e9fe6319..005ae21ef86c 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -1449,7 +1449,9 @@ OUString XclExpTbxControlObj::SaveControlPropertiesXml(XclExpXmlStream& rStrm) c pFormControl->write(" fmlaLink=\""); if (aCellLink.indexOf('!') < 0) { - pFormControl->write(GetTabInfo().GetScTabName(mxCellLinkAddress.Tab())); + OUString sTabName = GetTabInfo().GetScTabName(mxCellLinkAddress.Tab()); + ScCompiler::CheckTabQuotes(sTabName); + pFormControl->writeEscaped(sTabName); pFormControl->write("!"); } pFormControl->write(aCellLink);
