summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-11-16 11:31:53 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2023-11-16 19:15:09 +0100
commit4c40fe59893709f87e72f0dd36e859591d253189 (patch)
treef35ab9d694f4a5de9091ae195185a2493ae91920 /sc
parent764e2a5a3e6cfba8cf463796aca1451859a52b6e (diff)
tdf#146386 cui,sc,sw: Office::Common::Filter::HTML::Export::LocalGraphic
Adapt its usage to removal of FTP UCP; the target protocol check in sc and sw was particularly silly. Change-Id: Ib94501ebcc589e257e9b882a340e18ef1a791584 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159499 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/html/htmlexp.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 9ef9c555da91..8f06c93f5bbf 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -1339,11 +1339,16 @@ void ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
INetURLObject aFileUrl, aTargetUrl;
aFileUrl.SetSmartURL( rFileNm );
aTargetUrl.SetSmartURL( rTargetNm );
- if( !(INetProtocol::File == aFileUrl.GetProtocol() &&
- ( INetProtocol::File != aTargetUrl.GetProtocol() &&
- INetProtocol::Ftp <= aTargetUrl.GetProtocol() &&
- INetProtocol::Javascript >= aTargetUrl.GetProtocol())) )
+ if (!(INetProtocol::File == aFileUrl.GetProtocol()
+ && (INetProtocol::Http == aTargetUrl.GetProtocol()
+ || INetProtocol::Https == aTargetUrl.GetProtocol()
+ || INetProtocol::VndSunStarWebdav == aTargetUrl.GetProtocol()
+ || INetProtocol::Smb == aTargetUrl.GetProtocol()
+ || INetProtocol::Sftp == aTargetUrl.GetProtocol()
+ || INetProtocol::Cmis == aTargetUrl.GetProtocol())))
+ {
return;
+ }
if( pFileNameMap )
{