You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2019/08/19 16:41:57 UTC
[openoffice] branch AOO417 updated: Patch by: Damjan
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO417
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO417 by this push:
new af1b3ff Patch by: Damjan
af1b3ff is described below
commit af1b3ff97e55ab963936ebc242d5d0266002bea9
Author: mseidel <ms...@apache.org>
AuthorDate: Mon Aug 19 18:28:35 2019 +0200
Patch by: Damjan
(cherry picked from commit 5168e59c15cb9af435bdca9b78b99d1abe16c58e)
---
main/scripting/source/protocolhandler/scripthandler.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/main/scripting/source/protocolhandler/scripthandler.cxx b/main/scripting/source/protocolhandler/scripthandler.cxx
index 05ef615..c8d759f 100644
--- a/main/scripting/source/protocolhandler/scripthandler.cxx
+++ b/main/scripting/source/protocolhandler/scripthandler.cxx
@@ -41,6 +41,7 @@
#include <com/sun/star/script/provider/XScriptProviderFactory.hpp>
#include <com/sun/star/script/provider/ScriptFrameworkErrorType.hpp>
+#include <rtl/uri.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/sfxdlg.hxx>
@@ -158,8 +159,11 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
{
try
{
- bool bIsDocumentScript = ( aURL.Complete.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "document" ) ) !=-1 );
- // TODO: isn't this somewhat strange? This should be a test for a location=document parameter, shouldn't it?
+printf("ScriptProtocolHandler::dispatchWithNotification()\n");
+ ::rtl::OUString xStringUri = ::rtl::Uri::decode( aURL.Complete,
+ rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 );
+ bool bIsDocumentScript = ( xStringUri.indexOfAsciiL( RTL_CONSTASCII_STRINGPARAM( "document" ) ) !=-1 );
+printf("URI is %s\n", ::rtl::OUStringToOString (xStringUri, RTL_TEXTENCODING_UTF8).pData->buffer);
if ( bIsDocumentScript )
{