Filter out more unwanted command URIs
authorCaolán McNamara <caolan.mcnamara@collabora.com>
Thu, 30 Jan 2025 20:37:38 +0000 (20:37 +0000)
committerRene Engelhard <rene@debian.org>
Thu, 6 Feb 2025 17:18:37 +0000 (18:18 +0100)
Change-Id: I24c95d73b4fee89bdf044d5dd6efc9cd89627c54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181016
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Gbp-Pq: Name Filter-out-more-unwanted-command-URIs.diff

desktop/source/app/cmdlineargs.cxx

index 9f9251064fb2b8ff9a2ed02c407522ce0157e58c..a8befd7095c43c108644b71d24a93f2d4a67df6e 100644 (file)
@@ -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;