]> granicus.if.org Git - python/commit
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061)
authorVictor Stinner <vstinner@redhat.com>
Mon, 10 Dec 2018 10:12:53 +0000 (11:12 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Dec 2018 10:12:53 +0000 (11:12 +0100)
commit8e0418688906206fe59bd26344320c0fc026849e
treefcea9643fe407349cfc21aa9acdeace4c3afc264
parent6fef0f1a8162e755f3b46677265b7cf052d9b83f
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061)

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>
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]