From: Caolán McNamara Date: Thu, 30 Jan 2025 20:37:38 +0000 (+0000) Subject: Filter out more unwanted command URIs X-Git-Tag: archive/raspbian/4%7.4.7-1+rpi1+deb12u8^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0346fa217ce99772f94c529dd73f1748216d8380;p=libreoffice.git Filter out more unwanted command URIs Change-Id: I24c95d73b4fee89bdf044d5dd6efc9cd89627c54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181016 Tested-by: Jenkins Reviewed-by: Xisco Fauli Gbp-Pq: Name Filter-out-more-unwanted-command-URIs.diff --- diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 9f9251064fb..a8befd7095c 100644 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -168,7 +168,7 @@ CommandLineEvent CheckOfficeURI(/* in,out */ OUString& arg, CommandLineEvent cur if (nURIlen < 0) nURIlen = rest2.getLength(); auto const uri = rest2.subView(0, nURIlen); - if (INetURLObject(uri).GetProtocol() == INetProtocol::Macro) { + if (INetURLObject(uri).IsExoticProtocol()) { // Let the "Open" machinery process the full command URI (leading to failure, by intention, // as the "Open" machinery does not know about those command URI schemes): curEvt = CommandLineEvent::Open;