This is an automated email from the ASF dual-hosted git repository. ardovm pushed a commit to branch AOO41X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 419755b05637afdce1d57affda07e0f98a50de2d Author: Arrigo Marchiori <[email protected]> AuthorDate: Sat Feb 4 07:38:44 2023 +0100 Add a "Referer" to toolbars --- main/framework/source/uielement/generictoolbarcontroller.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/framework/source/uielement/generictoolbarcontroller.cxx b/main/framework/source/uielement/generictoolbarcontroller.cxx index 63e5959b67..10f236b0fd 100644 --- a/main/framework/source/uielement/generictoolbarcontroller.cxx +++ b/main/framework/source/uielement/generictoolbarcontroller.cxx @@ -186,11 +186,14 @@ throw ( RuntimeException ) if ( xDispatch.is() && xURLTransformer.is() ) { com::sun::star::util::URL aTargetURL; - Sequence<PropertyValue> aArgs( 1 ); + Sequence<PropertyValue> aArgs( 2 ); // Add key modifier to argument list aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "KeyModifier" )); aArgs[0].Value <<= KeyModifier; + // Add "Referer" to identify the source of this request + aArgs[1].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Referer" )); + aArgs[1].Value <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "private:user" )); aTargetURL.Complete = aCommandURL; xURLTransformer->parseStrict( aTargetURL );
