sekrit: make check_key more strict
This commit is contained in:
parent
adaa10ee08
commit
5d9c0c0830
@ -48,7 +48,11 @@ err()
|
|||||||
|
|
||||||
check_key()
|
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()
|
to_number()
|
||||||
|
Loading…
Reference in New Issue
Block a user