sw/source/filter/html/htmlplug.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 11f6bfe0c9a22838cf7e947bf9e229eef91d6b80
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue May 13 09:31:19 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue May 13 13:52:41 2025 +0200

    ofz#417031550 sanitize anchor for InsertEmbed too
    
    Change-Id: I5a5dd6566149f10f1df6df6a46ca4b3e69cf41af
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185247
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/filter/html/htmlplug.cxx 
b/sw/source/filter/html/htmlplug.cxx
index 2ff7fbbc5945..3981820b3b37 100644
--- a/sw/source/filter/html/htmlplug.cxx
+++ b/sw/source/filter/html/htmlplug.cxx
@@ -672,6 +672,9 @@ bool SwHTMLParser::InsertEmbed()
         uno::Sequence<uno::Any> aArguments{ uno::Any(aValues) };
         xObjInitialization->initialize(aArguments);
     }
+
+    SanitizeAnchor(aFrameSet);
+
     SwFrameFormat* pFlyFormat =
         m_xDoc->getIDocumentContentOperations().InsertEmbObject(*m_pPam,
                 ::svt::EmbeddedObjectRef(xObj, embed::Aspects::MSOLE_CONTENT),

Reply via email to