Skip to content

Commit 9fb1152

Browse files
author
skid
committed
fix for domain validation on rhel5
1 parent 0561a21 commit 9fb1152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ is_user_format_valid() {
479479
is_domain_format_valid() {
480480
object_name=${2-domain}
481481
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|_|/|\|\"|'|;|%|\`| ]"
482-
if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ \.\. ]]; then
482+
if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ "\.\." ]]; then
483483
check_result $E_INVALID "invalid $object_name format :: $1"
484484
fi
485485
}

0 commit comments

Comments
 (0)