1
0
Fork 0

nagios/check_whois: new date format: 2022-07-05T23:59:59.0Z

This commit is contained in:
Chl 2021-07-27 13:35:07 +02:00
parent 285d24e09d
commit 1518a792c7

View file

@ -110,7 +110,7 @@ extract_date_from_whois() {
)" )"
# Small protection against injection # Small protection against injection
if [ -n "$( echo "$EXPIRATION_DATE" | LANG=C sed -n '/^[a-zA-Z0-9:\-]\{1,64\}$/p' )" ]; then if [ -n "$( echo "$EXPIRATION_DATE" | LANG=C sed -n '/^[a-zA-Z0-9:.\-]\{1,64\}$/p' )" ]; then
date --date="$EXPIRATION_DATE" +%s date --date="$EXPIRATION_DATE" +%s
fi fi
} }