nagios/check_whois: new date format: 2022-07-05T23:59:59.0Z
This commit is contained in:
parent
285d24e09d
commit
1518a792c7
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ extract_date_from_whois() {
|
|||
)"
|
||||
|
||||
# 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
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue