Fix #15511: XSS vulnerability when deleting a version