productbuild: escape pkg-ref urls

Inspired-by: James Goruk <james.goruk@gmail.com>
Fixes: #18645
This commit is contained in:
Brad King
2018-11-28 13:34:45 -05:00
parent 652210e901
commit 7954ba9bc1

View File

@@ -225,7 +225,8 @@ void cmCPackPKGGenerator::CreateChoice(const cmCPackComponent& component,
xout.Content(this->GetPackageName(component));
} else {
xout.Content("file:./");
xout.Content(relativePackageLocation);
xout.Content(cmSystemTools::EncodeURL(relativePackageLocation,
/*escapeSlashes=*/false));
}
xout.EndElement(); // pkg-ref
}