From 9fb11527ba346e040e836bc046565f72f71db013 Mon Sep 17 00:00:00 2001 From: skid Date: Tue, 9 Aug 2016 16:23:51 +0300 Subject: [PATCH] fix for domain validation on rhel5 --- func/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/main.sh b/func/main.sh index 617637b8..b1503d6c 100644 --- a/func/main.sh +++ b/func/main.sh @@ -479,7 +479,7 @@ is_user_format_valid() { is_domain_format_valid() { object_name=${2-domain} exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|_|/|\|\"|'|;|%|\`| ]" - if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ \.\. ]]; then + if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ "\.\." ]]; then check_result $E_INVALID "invalid $object_name format :: $1" fi }