sekrit: make check_key more strict

このコミットが含まれているのは:
Lucas 2019-12-27 22:52:59 +00:00
コミット 5d9c0c0830

ファイルの表示

@ -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()