diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-04-16 10:45:12 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-04-16 22:00:48 +0200 |
commit | 2317ad572cc330c4c2de95065ef275f58a9c83a1 (patch) | |
tree | 88df0b6cb115ccbbf247ee5d184cd02f1ec93fd6 /desktop/source/app | |
parent | 8cd78aef23a5fe411ed19cce502dca9a3043c551 (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>
Diffstat (limited to 'desktop/source/app')
-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 52f96dd84d88..acb266eb335e 100644..100755 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -129,6 +129,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)) |