This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 86f40e7e40207041ffd482ef40ab6fa017e2bdfa
Author: Dave Fisher <[email protected]>
AuthorDate: Thu Apr 15 12:51:13 2021 -0700

    Update appopen.cxx
    (cherry picked from commit 4160b053d340f2e4137049b724c365c157fcc885)
---
 main/sfx2/source/appl/appopen.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main/sfx2/source/appl/appopen.cxx 
b/main/sfx2/source/appl/appopen.cxx
index 873a302..44c3000 100644
--- a/main/sfx2/source/appl/appopen.cxx
+++ b/main/sfx2/source/appl/appopen.cxx
@@ -944,10 +944,11 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
                 // We consider some protocols unsafe
                 sal_Bool bUnsafeProtocol;
                 switch (aINetProtocol) {
-                // case INET_PROT_FTP:
-                case INET_PROT_VND_SUN_STAR_HELP:
                 case INET_PROT_HTTP:
                 case INET_PROT_HTTPS:
+                   bSafeExtension = true; // trust the browser to prevent 
unsafe extensions
+                // case INET_PROT_FTP:
+                case INET_PROT_VND_SUN_STAR_HELP:
                 case INET_PROT_MAILTO:
                     bUnsafeProtocol = false;
                     break;

Reply via email to