sekrit: make check_key more strict

This commit is contained in:
Lucas 2019-12-27 22:52:59 +00:00
parent adaa10ee08
commit 5d9c0c0830

View File

@ -48,7 +48,11 @@ err()
check_key()
{
[ "$1" = "${1%/}" ] || err "Key can not end in a slash."
case $1 in
*/ | /* | ./* | */./* | */. | ../* | */../* | */..)
err "Key can not end in a slash."
;;
esac
}
to_number()