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

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]