summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-22 20:38:55 +0000
committerAndras Timar <andras.timar@collabora.com>2022-02-27 10:38:55 +0100
commit9a6376b9bb9c8c6d356e9c461f0da5eade6204ee (patch)
tree8e1eadaf59b6d0ede927fd6552bcd143359e6e5e /shell
parent61627bafc8ed6455d73350921bcc7b6454b5322e (diff)
add to suffix denylist
add the macOS specific suffixes from https: //support.google.com/mail/answer/6590?hl=en#zippy=%2Cmessages-that-have-attachments Change-Id: I3a834694e3aefb757974cd00ade009874c68c8b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130397 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> (cherry picked from commit 3e67678af2f6f8f7d25c5ad67b3828e96bc293b8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130449 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/exec/shellexec.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 2535fbb18e7f..d9da11334a64 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -136,8 +136,10 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
throw css::lang::IllegalArgumentException(
"XSystemShellExecute.execute, cannot process <" + aCommand + ">", {}, 0);
} else if (pathname.endsWithIgnoreAsciiCase(".class")
+ || pathname.endsWithIgnoreAsciiCase(".dmg")
|| pathname.endsWithIgnoreAsciiCase(".fileloc")
|| pathname.endsWithIgnoreAsciiCase(".inetloc")
+ || pathname.endsWithIgnoreAsciiCase(".ipa")
|| pathname.endsWithIgnoreAsciiCase(".jar")
|| pathname.endsWithIgnoreAsciiCase(".terminal"))
{