Hardening password checks

This commit is contained in:
Serghey Rodin 2018-04-08 21:50:32 +03:00
commit 3fdee2975d
4 changed files with 6 additions and 4 deletions

View file

@ -273,7 +273,7 @@ is_object_value_exist() {
is_password_valid() {
if [[ "$password" =~ ^/tmp/ ]]; then
if [ -f "$password" ]; then
password=$(head -n1 $password)
password="$(head -n1 $password)"
fi
fi
}