]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11066)
authorVictor Stinner <vstinner@redhat.com>
Mon, 10 Dec 2018 10:56:48 +0000 (11:56 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Dec 2018 10:56:48 +0000 (11:56 +0100)
commitc3cc75134d41c6d436c21d3d315dc069b4826432
tree05b3ce4e6e2e7e47208792ab9b310b34a74dcd52
parentfc79175f5e6424c4978ba9e9b9bc006778cdfd40
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11066)

Fix xml.dom.minidom cloneNode() on a document with an entity: pass
the correct arguments to the user data handler of an entity (fix an
old copy/paste mistake).

Bug spotted and fix proposed by Charalampos Stratakis, initial
reproducer written by Petr Viktorin.

Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
Co-Authored-By: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit 8e0418688906206fe59bd26344320c0fc026849e)
Lib/test/test_minidom.py
Lib/xml/dom/minidom.py
Misc/NEWS.d/next/Library/2018-12-10-09-48-27.bpo-35052.xE1ymg.rst [new file with mode: 0644]