This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch referer41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/referer41X by this push:
     new 862aa45eeb Add a "Referer" to toolbars
862aa45eeb is described below

commit 862aa45eeb118db8eefd70beacbda94e4007051c
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 );

Reply via email to