diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-04-16 10:45:12 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-11-04 00:51:44 +0100 |
commit | 1bfcd216382750aeb5d88b0ad80b56501b7c6d99 (patch) | |
tree | 39eb3910405d3dcbf2f4cefbda24719358a6e514 /desktop/source | |
parent | 74952340349d5e817a415030a6cf76f48e70ab8b (diff) |
SharePoint connection: Handle encoded URL passed as command line argument
Change-Id: I3352bf9ade88bd86f7ca3d53238364216547d52b
Reviewed-on: https://gerrit.libreoffice.org/70830
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 2317ad572cc330c4c2de95065ef275f58a9c83a1)
Diffstat (limited to 'desktop/source')
-rwxr-xr-x[-rw-r--r--] | desktop/source/app/cmdlineargs.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 490bf183de33..00b5c88ee05e 100644..100755 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -127,6 +127,10 @@ CommandLineEvent CheckOfficeURI(/* in,out */ OUString& arg, CommandLineEvent cur OUString rest2; long nURIlen = -1; + + // URL might be encoded + rest1 = rest1.replaceAll("%7C", "|"); + // 2. Discriminate by command name (incl. 1st command argument descriptor) // Extract URI: everything up to possible next argument if (rest1.startsWith("ofv|u|", &rest2)) |