desktop/source/lib/init.cxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-)
New commits: commit 6328993552631970b45b5b2eefce50ced55df22f Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Feb 4 13:55:59 2025 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Feb 12 17:50:15 2025 +0100 Filter kit xcu to an allowed subset of options Change-Id: I577de4f4c9ec2207be466fd2c2b1fa2548fe0197 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181115 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181488 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 4e9977d27418..f828d9e2e243 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5300,7 +5300,24 @@ static void updateConfig(const OUString& rConfigPath) } SAL_INFO("lok", "Installing XCU Item: " << xcustat.getFileName()); - xUpdate->insertModificationXcuFile(xcustat.getFileURL(), { u"/"_ustr }, {}); + // Filter xcu to a subset of options to allow + const uno::Sequence<OUString> aAllowedSubset{ + u"/org.openoffice.Office.Calc/Grid"_ustr, + u"/org.openoffice.Office.Calc/Print"_ustr, + u"/org.openoffice.Office.Calc/Content/Display/ObjectGraphic"_ustr, + u"/org.openoffice.Office.Calc/Content/Display/FormulaMark"_ustr, + + u"/org.openoffice.Office.Draw/Grid"_ustr, + u"/org.openoffice.Office.Draw/Print"_ustr, + + u"/org.openoffice.Office.Impress/Grid"_ustr, + u"/org.openoffice.Office.Impress/Print"_ustr, + + u"/org.openoffice.Office.Writer/Grid"_ustr, + u"/org.openoffice.Office.Writer/Print"_ustr, + u"/org.openoffice.Office.Writer/Content/Display/GraphicObject"_ustr + }; + xUpdate->insertModificationXcuFile(xcustat.getFileURL(), aAllowedSubset, {}); } } else if (sFileName == "wordbook")