This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push:
new 3ffed7e587 Add a "Referer" to toolbars
3ffed7e587 is described below
commit 3ffed7e5876fbb1fec922ed634f4ab83808aba5a
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Sat Feb 4 07:38:44 2023 +0100
Add a "Referer" to toolbars
(cherry picked from commit 862aa45eeb118db8eefd70beacbda94e4007051c)
---
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 );