Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit e4fb86a

Browse files
committed
disk: Escape paths passed to is_conflict_disk
1 parent eb8157a commit e4fb86a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

virtinst/VirtualDisk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def count_cb(ctx):
493493
template += "source/@%s='%s'])"
494494

495495
for dtype in VirtualDisk._target_props:
496-
xpath = template % (dtype, path)
496+
xpath = template % (dtype, _util.xml_escape(path))
497497
c += ctx.xpathEval(xpath)
498498

499499
return c

0 commit comments

Comments
 (0)