diff options
author | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-05-16 17:52:41 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-05-17 07:49:15 +0200 |
commit | fa4ceeb487f89671efc8bf533192bf237c35b51e (patch) | |
tree | abdb59ae441b189b6999e59b6bdefb5bfce00b49 | |
parent | b538729c90af470c33aeb3002750321ac8ac88be (diff) |
Revert "LOK: Allow image upload from WOPI-like host with self-signed cert"
This reverts commit d95ac1c608caba9cabaa503f1a5589285547aed5.
Change-Id: I4bc104272d4c41efab1a7e5eae78267675c1b32b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167753
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | ucb/source/ucp/webdav-curl/CurlSession.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx index 9ebe7d8fe306..ebc26784186e 100644 --- a/ucb/source/ucp/webdav-curl/CurlSession.cxx +++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx @@ -15,7 +15,6 @@ #include "webdavresponseparser.hxx" #include <comphelper/attributelist.hxx> -#include <comphelper/lok.hxx> #include <comphelper/scopeguard.hxx> #include <comphelper/string.hxx> @@ -754,14 +753,6 @@ CurlSession::CurlSession(uno::Reference<uno::XComponentContext> xContext, rc = curl_easy_setopt(m_pCurl.get(), CURLOPT_FORBID_REUSE, 1L); assert(rc == CURLE_OK); } - // If WOPI-like host has self-signed certificate, it's not possible to insert images - // to the document, so here is a compromise. The user has already accepted the self - // signed certificate in the browser, when we get here. - if (comphelper::LibreOfficeKit::isActive()) - { - rc = curl_easy_setopt(m_pCurl.get(), CURLOPT_SSL_VERIFYPEER, 0L); - assert(rc == CURLE_OK); - } } CurlSession::~CurlSession() {} |