]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11067)
authorVictor Stinner <vstinner@redhat.com>
Mon, 10 Dec 2018 10:53:09 +0000 (11:53 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Dec 2018 10:53:09 +0000 (11:53 +0100)
commit3fd975583b8e43d8dc23c83d699cd10b1fee6f7f
tree0fdebc86ad34abbda206ed9b2fa844edac5d193e
parentf2d2cb12f2d3bd68a13c4098311e725f776768ad
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11067)

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]