mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 20:21:41 -06:00
productbuild: escape pkg-ref urls
Inspired-by: James Goruk <james.goruk@gmail.com> Fixes: #18645
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user