Reject control characters in entry names

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
native-api 2026-07-28 09:26:39 +03:00 committed by GitHub
parent 94fcf1e269
commit 41bb8f6106
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@ case "$version" in
esac
case "$package_name" in
*/* | .. | . )
*/* | .. | . | *[[:cntrl:]]* )
echo "pyenv-binary: invalid package name \`${package_name}'" >&2
exit 1
;;