This is an automated email from the ASF dual-hosted git repository. ardovm pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push: new a17d592dd7 More checks a17d592dd7 is described below commit a17d592dd780140ccf35c2d69f72c695e96bd8bf Author: Arrigo Marchiori <ard...@yahoo.it> AuthorDate: Tue Dec 6 21:22:57 2022 +0100 More checks --- main/sfx2/source/appl/appuno.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/sfx2/source/appl/appuno.cxx b/main/sfx2/source/appl/appuno.cxx index c52e73615b..eac20c85de 100644 --- a/main/sfx2/source/appl/appuno.cxx +++ b/main/sfx2/source/appl/appuno.cxx @@ -1949,6 +1949,9 @@ ErrCode SfxMacroLoader::loadMacro( const ::rtl::OUString& rURL, com::sun::star:: else { // direct API call on a specified object + if ( !pCurrent->AdjustMacroMode( String() ) ) + // check forbids execution + return ERRCODE_IO_ACCESSDENIED; String aCall( '[' ); aCall += String(INetURLObject::decode(aMacro.Copy(6), INET_HEX_ESCAPE, INetURLObject::DECODE_WITH_CHARSET));